powered by
Calculate time difference in seconds
time_diff2(start, end, units = "secs", label = "")
A number inherits rave-units class.
rave-units
start and end of timer
passed to time_delta
time_delta
rave-units label for display purpose.
as_rave_unit
start <- Sys.time() Sys.sleep(0.1) end <- Sys.time() dif <- time_diff2(start, end, label = 'Running ') print(dif, digits = 4) is.numeric(dif) dif + 1
Run the code above in your browser using DataLab