摘要:
1 #include 2 3 static clock_t Start,Finish; 4 5 Start=clock(); 6 7 fun(); 8 9 Finish = clock();10 double time_second=double(Finish-Start)/CLOCKS_PER_SEC;11 12 printf(fun()运行时间:%fs",time_second);用于测试一个函数的运行时间。 阅读全文
posted @ 2013-10-16 18:22
小菜鸟_yang
阅读(310)
评论(0)
推荐(0)

浙公网安备 33010602011771号