csonezp

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年12月25日

摘要: 1.如果只是要计算程序运行的时间,不需要那么复杂。<windows.h> 中的 GetTickCount() 就是干这个的。TimeStart=GetTickCount(); ....... TimeEnd=GetTickCount(); TimeUsed=TimeEnd-TimeStart;2. #include<stdio.h>#include<time.h>#include<conio.h>int main(){time_t stime , etime ;time( &stime ); /* get start time */get 阅读全文
posted @ 2012-12-25 20:24 csonezp 阅读(13220) 评论(0) 推荐(0) 编辑