stopwatch: Timer and Stopwatch

View source: R/stopwatch.R

stopwatchR Documentation

Timer and Stopwatch

Description

Timer and Stopwatch

Usage

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

## Not run: 
stopwatch(10)
stopwatch(20)

## End(Not run)

letiR/letiRmisc documentation built on Sept. 11, 2022, 12:43 a.m.