Learn R Programming

hmstimer (version 0.3.0)

tmr_reset: Reset hms Timer

Description

Resets a hms_timer() by creating a new one.

Usage

tmr_reset(x, seconds = 0)

Value

A hms_timer().

Arguments

x

A hms_timer().

seconds

A non-negative numeric scalar of the initial number of seconds.

See Also

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

Examples

Run this code
tmr <- tmr_timer(10)
print(tmr)
tmr_reset(tmr)

Run the code above in your browser using DataLab