Description Usage Arguments Value Examples
Calculate time difference in seconds
1 | time_diff2(start, end, units = "secs", label = "")
|
start, end |
start and end of timer |
units |
passed to |
label |
|
A number inherits rave-units
class.
1 2 3 4 5 6 7 8 9 | 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.