powered by
Returns the elapsed time for a hms_timer() as a hms_timer().
hms_timer()
tmr_elapsed(x)
A hms_timer() of the elapsed time.
A hms_timer().
The elapsed time is the value of the scalar plus the difference between the current system time and the system time when the timer was started.
If the original hms_timer() was running then the new hms_timer() is assigned an attribute named start of the current system time.
Other start_stop: tmr_is_started(), tmr_is_stopped(), tmr_print(), tmr_reset(), tmr_start(), tmr_stop(), tmr_timer()
tmr_is_started()
tmr_is_stopped()
tmr_print()
tmr_reset()
tmr_start()
tmr_stop()
tmr_timer()
tmr <- tmr_start(tmr_timer()) print(tmr_elapsed(tmr)) Sys.sleep(0.01) print(tmr_elapsed(tmr)) tmr <- tmr_stop(tmr) print(tmr_elapsed(tmr)) Sys.sleep(0.01) print(tmr_elapsed(tmr))
Run the code above in your browser using DataLab