From: Soikk <76824648+Soikk@users.noreply.github.com> Date: Fri, 10 Sep 2021 09:04:10 +0000 (+0200) Subject: Update clock.c X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=60b0fb60a54787a0b8ea821a180e8c831ea74188;p=soikk-clock.git Update clock.c Added a delay so it doesnt use so much CPU --- diff --git a/clock.c b/clock.c index feb013e..c2f0ab5 100644 --- a/clock.c +++ b/clock.c @@ -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;