tmr_start: Start hms Timer

View source: R/start.R

tmr_startR Documentation

Start hms Timer

Description

Starts a hms_timer() by adding an attribute named start of the current system time.

Usage

tmr_start(x)

Arguments

x

A hms_timer().

Details

If the hms_timer() is already started, the function simply issues a warning and returns the original object.

Value

A started hms_timer().

See Also

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

Examples

tmr <- tmr_start(tmr_timer())
print(tmr_elapsed(tmr))
Sys.sleep(0.01)
print(tmr_elapsed(tmr))

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