Fork me on GitHub

  2013年4月10日
摘要: http://blog.csdn.net/coder_xia/article/details/6566708一、标准C和C++都可用1、获取时间用time_ttime( time_t * timer ),计算时间差使用double difftime( time_t timer1, time_t timer0 )。精确到秒。测试程序如下:[c-sharp]view plaincopy#include<time.h>#include<stdio.h>intmain(){time_tstart,end;doublecost;time(&start);sleep(1); 阅读全文
posted @ 2013-04-10 15:01 huashiyiqike 阅读(597) 评论(0) 推荐(0) 编辑