Resets a hms_timer() by creating a new one.

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

Examples

tmr <- tmr_timer(10)
print(tmr)
#> 00:00:10
tmr_reset(tmr)
#> 00:00:00