This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
void delay(int number_of_seconds) { | |
int milli_seconds = CLOCKS_PER_SEC * number_of_seconds; | |
clock_t start_time = clock(); | |
while (clock() < start_time + milli_seconds) {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcd |