#include <ctime>
clock_t start = clock(); //获取当前系统时间
/*插入函数*/
clock_t end = clock();
double programTimes = ((double) end -start) / CLOCKS_PER_SEC;
cout << programTimes << endl;
Measure the running time of a function
Guess you like
Origin blog.csdn.net/weixin_44650358/article/details/116449049
Recommended
Ranking