code for fun

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
#include <time.h>
clock_t start, end;
double duration;
start 
= clock();
//do something
end = clock();
duration 
= (double)(end-start)/CLOCKS_PER_SEC;   //

 

posted on 2011-04-13 22:44  xueda120  阅读(148)  评论(0编辑  收藏  举报