CPUTS.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++)
- puts("Jamsa's 1001 C/C++ Tips");
- time(&stop_time);
- printf("nnTime required for puts %d secondsn",
- stop_time-start_time);
- printf("Press any key...n");
- getch();
- time(&start_time);
- for (count = 0; count < 1001; count++)
- cputs("Jamsa's 1001 C/C++ Tipsrn");
-
- time(&stop_time);
- printf("nnTime required for cputs %d secondsn",
- stop_time-start_time);
- }