当前位置:网站首页>(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;
}边栏推荐
- Hi Fun Summer, play SQL planner with starrocks!
- Leetcode 216 combined summation III -- backtracking method
- Leetcode 77 combination -- backtracking method
- 判断链表是否是回文链表
- Judge whether the binary tree is a binary search tree
- Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)
- String类
- 挖财学堂班主任给的证券账户安全吗?能开户吗?
- VMware 虛擬機啟動時出現故障:VMware Workstation 與 Hyper-v 不兼容...
- Leetcode records - sort -215, 347, 451, 75
猜你喜欢

Gold, silver and four want to change jobs, so we should seize the time to make up

【C语言基础】12 字符串

Pytest learning notes (13) -allure of allure Description () and @allure title()

Leetcode 77 combination -- backtracking method

可迭代对象与迭代器、生成器的区别与联系

游戏行业安全选择游戏盾,效果怎么样?

Installation and use of sqoop

Exclusive news: Alibaba cloud quietly launched RPA cloud computer and has opened cooperation with many RPA manufacturers

存在安全隐患 起亚召回部分K3新能源

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
随机推荐
How to use etcd to realize distributed /etc directory
China carbon disulfide industry research and investment strategy report (2022 Edition)
Transition technology from IPv4 to IPv6
Template Engine Velocity Foundation
【PyG】文档总结以及项目经验(持续更新
SQL question brushing 586 Customers with the most orders
在MeterSphere接口测试中如何使用JMeter函数和MockJS函数
Babbitt | yuan universe daily must read: Naixue coin, Yuan universe paradise, virtual stock game Do you understand Naixue's tea's marketing campaign of "operation pull full"
Building blocks for domestic databases, stonedb integrated real-time HTAP database is officially open source!
Basic usage of Frida
英特尔开源深度学习工具库 OpenVINO,将加大与本土软硬件方合作,持续开放
今天14:00 | 港大、北航、耶鲁、清华、加大等15位ICLR一作讲者精彩继续!
Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)
如何写出好代码 — 防御式编程指南
剑指 Offer II 105. 岛屿的最大面积
[C language supplement] judge which day tomorrow is (tomorrow's date)
SQL question brushing 627 Change gender
Iommu/smmuv3 code analysis (10) page table operation
How to use F1 to F12 correctly on laptop keyboard
What are the differences between PHP and DW