Calculate time difference in seconds
Arguments
- start, end
start and end of timer
- units
passed to
time_delta
- label
rave-units
label for display purpose.
Examples
start <- Sys.time()
Sys.sleep(0.1)
end <- Sys.time()
dif <- time_diff2(start, end, label = 'Running ')
print(dif, digits = 4)
#> Running 0.2613 secs
is.numeric(dif)
#> [1] TRUE
dif + 1
#> Running 1.26 secs