PUTS.C
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:1k
- #include <stdio.h>
- #include <conio.h>
- #include <time.h>
- void main(void)
- {
- int count;
- time_t start_time, stop_time;
-
- time(&start_time);
- for (count = 0; count < 1001; count++)
- printf("Jamsa's 1001 C/C++ Tipsn");
- time(&stop_time);
- printf("nnTime required for printf %d secondsn",
- stop_time-start_time);
- printf("Press any key...n");
- getch();
- time(&start_time);
- for (count = 0; count < 1001; count++)
- puts("Jamsa's 1001 C/C++ Tips");
-
- time(&stop_time);
- printf("nnTime required for puts %d secondsn",
- stop_time-start_time);
- }