| tmr_elapsed | R Documentation |
Returns the elapsed time for a hms_timer() as a hms_timer().
tmr_elapsed(x)
x |
A |
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.
A hms_timer() of the elapsed time.
Other start_stop:
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.