C > Code Snippets
Delay for 5 seconds example
Delay for 5 seconds example #include
#include
int main() { time_t start; time_t current; time(&start); printf("delay for 5 seconds.\n"); do{ time(¤t); }while(difftime(current,start) < 5.0); printf("Finished delay.\n"); return 0; }
C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting