tmr_timer: Create hms Timer

View source: R/timer.R

tmr_timerR Documentation

Create hms Timer

Description

Creates a hms_timer().

Usage

tmr_timer(seconds = 0, start = FALSE, ..., title = "")

Arguments

seconds

A non-negative numeric scalar of the initial number of seconds.

start

A flag specifying whether to start the timer.

...

These dots are for future extensions and must be empty.

title

A string of the title.

Value

A hms_timer().

See Also

Other start_stop: tmr_elapsed(), tmr_is_started(), tmr_is_stopped(), tmr_print(), tmr_reset(), tmr_start(), tmr_stop()

Examples

tmr_timer()
tmr_timer(1, start = TRUE, title = "my timer")
class(tmr_timer(2))
str(tmr_timer(2, start = TRUE, title = "a timer"))

poissonconsulting/hmstimer documentation built on Nov. 20, 2024, 10:02 p.m.