aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoikk2021-09-10 11:04:10 +0200
committerSoikk2021-09-10 11:04:10 +0200
commit60b0fb60a54787a0b8ea821a180e8c831ea74188 (patch)
treee45dd069ce232b1cac21b5e699e4b32b7b0914b1
parent911fac5cc7b847962694f42ee06f5a3d3e62a2ba (diff)
downloadsoikk-clock-60b0fb60a54787a0b8ea821a180e8c831ea74188.tar.xz
soikk-clock-60b0fb60a54787a0b8ea821a180e8c831ea74188.tar.zst
Update clock.c
Added a delay so it doesnt use so much CPU
-rw-r--r--clock.c5
1 files changed, 5 insertions, 0 deletions
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;