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

#include <time.h>
clock_t start, end;
double duration;
start 
= clock();
//do something
end = clock();
duration 
= (double)(end-start)/CLOCKS_PER_SEC;   //

 

posted @ 2011-04-13 22:44  cpoint  阅读(496)  评论(0编辑  收藏  举报
浏览次数:travelocity promotion codes