Timer and Stopwatch
stopwatch(max_time = 1000, pause = 0.01, digits = 5) timer(time, pause = 0.01, digits = 5)
max_time | time in seconds after which the stopwatch is forced to stop, use |
---|---|
pause | time duration of the pause between 2 time increments displayed (it should better be small). |
digits | number of digits displayed. |
time | initial time (in seconds) for the timer. |
timer
: Timer
if (FALSE) { stopwatch(10) stopwatch(20) }