时间函数举例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;
}

原文地址:https://www.cnblogs.com/wangjingyuwhy/p/2942750.html