#include "stdio.h"
main()
{ time_t start,end;
int i;
start=time(NULL);
for(i=0;i<3000;i++)
{ printf("\1\1\1\1\1\1\1\1\1\1\n");}
end=time(NULL);
printf("\1: The different is %6.3f\n",difftime(end,start));
}
-----------------------------------------------------------------------------
【程序93】
题目:时间函数举例3
1.程序分析:
2.程序源代码:
/*calculate time*/
#include "time.h"
#include "stdio.h"
main()
{ clock_t start,end;
int i;
double var;
start=clock();
for(i=0;i<10000;i++)
{ printf("\1\1\1\1\1\1\1\1\1\1\n");}
end=clock();
printf("\1: The different is %6.3f\n",(double)(end-start));
}
http://www.fengone.com/bj/jsqy/2014/0408/476498.html
http://www.xyzc.cn/health/bjys/2014-04-08/1564165.html
http://www.rznews.cn/yszx/stbk/5319078836.html
http://www.yltvb.com/xwbk/redianxinwen/5321232003.html
http://www.js0573.com/yx/jsfs/3905330.html
http://www.fengone.com/bj/jsqy/2014/0408/476483.html
http://www.lfxww.com/2014/shichangshangxun/2014/0408/774692.html
http://www.yltvb.com/xwbk/jkxx/5321310205.html
http://www.lfxww.com/2014/shichangshangxun/2014/0408/774900.html
http://www.yltvb.com/xwbk/jkxx/5322011587.html
http://www.js0573.com/yx/dzdy/3906385.html
http://www.fengone.com/bj/zxzx/2014/0408/476503.html
http://www.yltvb.com/xwbk/jkxx/5322005940.html
http://www.lfxww.com/2014/shichangshangxun/2014/0408/777294.html
http://www.yltvb.com/xwbk/redianxinwen/5327440660.html
http://www.js0573.com/yx/dzdy/3925885.html
http://www.zznews.cn/hyzx/jkxx/5322746638.html
http://www.fengone.com/bj/zxzx/2014/0408/478595.html
http://www.yltvb.com/xwbk/jkxx/5330071568.html
http://www.js0573.com/yx/sjbm/3929605.html
http://www.yltvb.com/xwbk/redianxinwen/5327447234.html
http://www.zznews.cn/hyzx/jkxx/5322822829.html
http://www.yltvb.com/xwbk/jkxx/5330075051.html
http://www.fengone.com/bj/jsqy/2014/0408/478598.html
http://www.js0573.com/yx/sjbm/3929397.html
http://www.lfxww.com/2014/shichangshangxun/2014/0408/777253.html
http://www.yltvb.com/xwbk/jkxx/5330084646.html
http://www.js0573.com/yx/dzdy/3925866.html
http://www.yltvb.com/xwbk/redianxinwen/5327472816.html
http://www.fengone.com/bj/jsqy/2014/0408/478608.html