diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-02-02 15:08:14 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-02-02 15:08:14 -0500 |
commit | 5c6ba756fe685131335e88e843754e7aac6d21c2 (patch) | |
tree | c0ca5f06216918a67e92a9c7ca3594b5b1d84656 | |
parent | 37ab49b2706f524f3a05ac7cc96ee1e94d482dda (diff) |
added infinite timers if #==0
-rw-r--r-- | timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ int main(int argc, char** argv){ } sscanf(argv[1], "%d:%d", &min, &sec); int time = min*60 + sec; - for (int j = 0; j<times; j++){ + 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); fflush(stdout); |