time_diff2 | R Documentation |
Calculate time difference in seconds
time_diff2(start, end, units = "secs", label = "")
start, end |
start and end of timer |
units |
passed to |
label |
|
A number inherits rave-units
class.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.