Timer (compute time difference).
Arguments
- t0
Time at the beginning.
- unit
Options:
"auto", "secs", "mins", "hours", "days", "weeks"
. Defaults to"secs"
.- digits
Number of decimal places of output. Defaults to
0
.
Examples
if (FALSE) {
t0 = Sys.time()
dtime(t0)
}