Tests if a hms_timer() is started (as indicated by the presence of an attribute named start).

tmr_is_started(x)

Arguments

x

A hms_timer().

Value

A flag (TRUE or FALSE).

See also

Examples

tmr <- tmr_timer(start = TRUE)
print(tmr_is_started(tmr))
#> [1] TRUE
tmr <- tmr_stop(tmr)
print(tmr_is_started(tmr))
#> [1] FALSE