Learn R Programming

hmstimer (version 0.3.0)

tmr_is_stopped: Is hms Timer Stopped

Description

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

Usage

tmr_is_stopped(x)

Value

A flag.

Arguments

x

A hms_timer().

See Also

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

Examples

Run this code
tmr <- tmr_timer(start = TRUE)
print(tmr_is_stopped(tmr))
tmr <- tmr_stop(tmr)
print(tmr_is_stopped(tmr))

Run the code above in your browser using DataLab