diff options
| author | Soikk | 2021-09-10 11:04:10 +0200 |
|---|---|---|
| committer | Soikk | 2021-09-10 11:04:10 +0200 |
| commit | 60b0fb60a54787a0b8ea821a180e8c831ea74188 (patch) | |
| tree | e45dd069ce232b1cac21b5e699e4b32b7b0914b1 | |
| parent | 911fac5cc7b847962694f42ee06f5a3d3e62a2ba (diff) | |
| download | soikk-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
