powered by
Similar to `system.time()` but returns a more convenient 'difftime' object.
timing(expr, gc.first = TRUE)
Valid R expression to be timed. If missing, [proc.time()] is used instead.
Logical - should a garbage collection be performed immediately before the timing? Default is `TRUE`.
[system.time()]
test <- timing(Sys.sleep(0.5)) test attr(test, "details")
Run the code above in your browser using DataLab