difftime.c

来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 17 行

C
17
字号
#include <time.h>
#include <stdio.h>
#include <dos.h>
#include <conio.h>
void main(void)
{
   time_t first, second;
   clrscr();
   printf("press any key after some wait\n");
   first = time(NULL);
     getch();
   second = time(NULL);
   printf("wait time is: %f seconds\n", difftime (second, 
first));
   getch();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?