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