C语言基础:延迟执行的代码
下边代码段是关于C语言基础:延迟执行的代码,希望能对大家也有用。
#include <stdio.h>
#include <time.h>
int main (void)
{
time_t current_time;
time_t start_time;
printf("About to delay 5 secondsn");do { time(¤t_time);} while ((current_time - start_time) < 5);printf("Donen");return 1;
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。