计算程序运行时间(C语言)

#include <time.h>
clock_t start, end;
double duration;
start 
= clock();
//do something
end = clock();
duration 
= (double)(end-start)/CLOCKS_PER_SEC;   //
原文地址:https://www.cnblogs.com/xueda120/p/3068200.html