From 60b0fb60a54787a0b8ea821a180e8c831ea74188 Mon Sep 17 00:00:00 2001 From: Soikk <76824648+Soikk@users.noreply.github.com> Date: Fri, 10 Sep 2021 11:04:10 +0200 Subject: [PATCH] Update clock.c Added a delay so it doesnt use so much CPU --- clock.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5