tmr_reset: Reset hms Timer

View source: R/reset.R

tmr_resetR Documentation

Reset hms Timer

Description

Resets a hms_timer() by creating a new one.

Usage

tmr_reset(x, seconds = 0)

Arguments

x

A hms_timer().

seconds

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

Value

A hms_timer().

See Also

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

Examples

tmr <- tmr_timer(10)
print(tmr)
tmr_reset(tmr)

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