- #include <stdio.h>
- #include <time.h>
- void main (void)
- {
- time_t current_time;
- time_t start_time;
- printf("About to delay 5 secondsn");
- time(&start_time); // Get starting time in seconds
- do {
- time(¤t_time);
- } while ((current_time - start_time) < 5);
- printf("Donen");
- }