代碼運行時間計算方法

1 #include <time.h>
2 
3 time_t start, end;
4 time(&start);//1970年1月1日0時0分0秒至今的秒數
5 
6 /*代碼段*/
7 
8 time(&end);
9 cout << Using time: << end - start << endl;
相關文章
相關標籤/搜索