tmr_round: Round hms Timer

View source: R/round.R

tmr_roundR 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

hmstimer documentation built on Sept. 20, 2022, 9:11 a.m.