Timer and Stopwatch

stopwatch(max_time = 1000, pause = 0.01, digits = 5)

timer(time, pause = 0.01, digits = 5)

Arguments

max_time

time in seconds after which the stopwatch is forced to stop, use Inf to run it endlessly.

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.

Functions

  • timer: Timer

Examples

if (FALSE) { stopwatch(10) stopwatch(20) }