Update clock.c

Added a delay so it doesnt use so much CPU
This commit is contained in:
Soikk 2021-09-10 11:04:10 +02:00
parent 911fac5cc7
commit 60b0fb60a5

View File

@ -268,6 +268,11 @@ int main(int argc, char **argv){
struct tm *curr_time = localtime(&rawtime);
gotoxy(0, 0);
drawTime(curr_time);
#ifdef _WIN32
Sleep(125);
#else
sleep(.125);
#endif
}
return 0;