时间函数举例3

/*calculate time*/
#include <stdio.h>
#include <conio.h>
#include <time.h>
int main()
{          /*时间函数举例3*/
    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 time is %6.3f\n",(double)(end-start));//还有这
    getch();
    return 0;
}

posted @ 2013-03-04 14:51  王井玉  阅读(240)  评论(0编辑  收藏  举报