tmr_round {hmstimer}R Documentation

Round hms Timer

Description

Rounds a hms_timer() after updating it to the elapsed time.

Usage

tmr_round(x, digits = 0)

Arguments

x

A hms_timer().

digits

A whole number of the number of decimal places.

Details

Negative values of digit are permitted.

Value

A hms_timer().

See Also

Other round: tmr_ceiling(), tmr_floor(), tmr_format()

Examples

tmr_round(tmr_timer(18.9))
tmr_round(tmr_timer(18.9), 1)
tmr_round(tmr_timer(18.9), -1)
tmr_round(tmr_timer(121), -2) # 121 is rounded to 100 seconds

[Package hmstimer version 0.2.1 Index]