当前位置:网站首页>(12) About time-consuming printing
(12) About time-consuming printing
2022-07-01 16:57:00 【Li Sanhe】
It is used to judge the time-consuming printing of a program
#include <chrono>
int main(){
auto start = std::chrono::steady_clock::now();
int res=countNonZero(s,srcBase,s.width); //do some things
auto end = std::chrono::steady_clock::now();
auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(end-start);
double time = ms.count();
std::cout<<"res:"<<res<<","<<time<<std::endl;
}
边栏推荐
- C語言輸入/輸出流和文件操作
- 嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
- P2592 [ZJOI2008]生日聚会(dp)
- SQL question brushing 584 Looking for user references
- 在MeterSphere接口测试中如何使用JMeter函数和MockJS函数
- SystemVerilog-结构体(二)
- C language input / output stream and file operation
- ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
- 阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
- libcurl下载文件的代码示例
猜你喜欢
如何使用 etcd 实现分布式 /etc 目录
SQL question brushing 584 Looking for user references
How to solve the keyboard key failure of notebook computer
Hi Fun Summer, play SQL planner with starrocks!
How to cancel automatic search and install device drivers for laptops
SystemVerilog-结构体(二)
Template Engine Velocity Foundation
ShenYu 网关开发:在本地启用运行
荣威 RX5 的「多一点」产品策略
Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)
随机推荐
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
The amazing open source animation library is not only awesome, but also small
P2893 [usaco08feb] making the grade g (DP & priority queue)
How to restore the system with one click on Lenovo laptop
Today, at 14:00, 15 ICLR speakers from Hong Kong University, Beihang, Yale, Tsinghua University, Canada, etc. continue!
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
Stegano in the world of attack and defense
P2592 [ZJOI2008]生日聚会(dp)
Kali install Nessus
Redis6.0 new features
AI college entrance examination volunteer filling: the gods of Dachang fight, and candidates pay to watch
How to use F1 to F12 correctly on laptop keyboard
Girls who want to do software testing look here
P2592 [zjoi2008] birthday party (DP)
Germany if was crowned with many awards. How strong is this pair of headphones? In depth evaluation of yinpo GTW 270 hybrid
Introduction to software engineering - Chapter 6 - detailed design
越来越多地使用 SLO 来实现可观测性|DevOps
Cookies and session keeping technology
Tutorial on the principle and application of database system (002) -- MySQL installation and configuration: MySQL software uninstallation (Windows Environment)
sql刷题586. 订单最多的客户