Update clock.c
Added a delay so it doesnt use so much CPU
This commit is contained in:
parent
911fac5cc7
commit
60b0fb60a5
5
clock.c
5
clock.c
@ -268,6 +268,11 @@ int main(int argc, char **argv){
|
|||||||
struct tm *curr_time = localtime(&rawtime);
|
struct tm *curr_time = localtime(&rawtime);
|
||||||
gotoxy(0, 0);
|
gotoxy(0, 0);
|
||||||
drawTime(curr_time);
|
drawTime(curr_time);
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(125);
|
||||||
|
#else
|
||||||
|
sleep(.125);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user