当前位置:网站首页>(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;
}边栏推荐
- P2592 [zjoi2008] birthday party (DP)
- Pytest learning notes (13) -allure of allure Description () and @allure title()
- Introduction to software engineering - Chapter 6 - detailed design
- China nylon 11 industry research and future forecast report (2022 Edition)
- Template Engine Velocity Foundation
- Cookies and session keeping technology
- 可迭代对象与迭代器、生成器的区别与联系
- 【C語言補充】判斷明天是哪一天(明天的日期)
- Research and investment strategy report of China's sodium sulfate industry (2022 Edition)
- AI college entrance examination volunteer filling: the gods of Dachang fight, and candidates pay to watch
猜你喜欢

Rhcsa Road

Buuctf gold III
![[live broadcast appointment] database obcp certification comprehensive upgrade open class](/img/50/83a533f4e8a60f90e03b991385c08d.jpg)
[live broadcast appointment] database obcp certification comprehensive upgrade open class

你还在用收费的文档管理工具?我这有更牛逼的选择!完全免费

【PyG】文档总结以及项目经验(持续更新

重磅披露!上百个重要信息系统被入侵,主机成为重点攻击目标

英特尔开源深度学习工具库 OpenVINO,将加大与本土软硬件方合作,持续开放

【直播预约】数据库OBCP认证全面升级公开课

Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores
荣威 RX5 的「多一点」产品策略
随机推荐
SQL question brushing 586 Customers with the most orders
Rhcsa Road
如何写出好代码 — 防御式编程指南
Iommu/smmuv3 code analysis (10) page table operation
Is the securities account given by the head teacher of goucai school safe? Can I open an account?
SQL注入漏洞(Mysql与MSSQL特性)
Shenyu gateway development: enable and run locally
China benzene hydrogenation Market Research and investment forecast report (2022 Edition)
机器学习11-聚类,孤立点判别
Basic usage of Frida
AI college entrance examination volunteer filling: the gods of Dachang fight, and candidates pay to watch
Judge whether the binary tree is a binary search tree
美国国家安全局(NSA)“酸狐狸”漏洞攻击武器平台技术分析报告
想做软件测试的女孩子看这里
6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
Pytest learning notes (13) -allure of allure Description () and @allure title()
AI高考志愿填报:大厂神仙打架,考生付费围观
How to use etcd to realize distributed /etc directory
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
China sorbitol Market Forecast and investment strategy report (2022 Edition)