powered by
Stops a hms_timer() after updating it to the elapsed time.
hms_timer()
tmr_stop(x)
A stopped hms_timer().
A hms_timer().
If the hms_timer() is already stopped, the function simply issues a warning and returns the original object.
Other start_stop: tmr_elapsed(), tmr_is_started(), tmr_is_stopped(), tmr_print(), tmr_reset(), tmr_start(), tmr_timer()
tmr_elapsed()
tmr_is_started()
tmr_is_stopped()
tmr_print()
tmr_reset()
tmr_start()
tmr_timer()
tmr <- tmr_stop(tmr_timer(start = TRUE)) print(tmr_elapsed(tmr)) Sys.sleep(0.01) print(tmr_elapsed(tmr))
Run the code above in your browser using DataLab