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

tmr_is_stopped(x)

Arguments

x

A hms_timer().

Value

A flag.

See also

Examples

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