diff options
-rw-r--r-- | timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ int main(int argc, char** argv){ int time = min*60 + sec; for (int j = 0; times==0 || j<times; j++){ for (int i = 1; i<=time; i++){ - printf("%d:%02d/%d:%02d\r", (i-i%60)/60, i%60, min, sec); + printf("\r%d:%02d/%d:%02d", (i-i%60)/60, i%60, min, sec); fflush(stdout); sleep(1); } |