Learn R Programming

hmstimer (version 0.3.0)

tmr_print: Print hms Timer

Description

Returns the elapsed time for a hms_timer() from the system time when the timer was started and the current system time as an hms time.

Usage

tmr_print(x, ..., print_title = TRUE)

Value

A character string.

Arguments

x

A hms_timer().

...

These dots are for future extensions and must be empty.

print_title

A flag specifying whether to print the title.

Details

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.

See Also

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

Examples

Run this code
x <- tmr_start(tmr_timer())
tmr_print(x)

Run the code above in your browser using DataLab