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)

hmstimer documentation built on Sept. 20, 2022, 9:11 a.m.