首页 > 编程语言 > 详细

C++计算毫秒

时间:2019-05-07 18:42:04      阅读:116      评论:0      收藏:0      [点我收藏+]
 1 #include <time.h>
 2 
 3 
 4 time_t start, end;
 5 start = clock();
 6 
 7 /***********************
 8 
 9 代码
10 
11 ***********************/
12 end = clock();
13 cout << "total time is " << end - start << "ms" << endl;

 

C++计算毫秒

原文:https://www.cnblogs.com/ww1x/p/10827009.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!