powered by
Repeats timing expr until minSec is reached
repeat.time(expr, gcFirst = TRUE, minSec = 0.5, envir = parent.frame())
A object of class "proc_time": see proc.time
"proc_time"
proc.time
for details.
Valid expression to be timed.
Logical - should a garbage collection be performed immediately before the timing? Default is TRUE.
TRUE
number of seconds to repeat at least
the environment in which to evaluate expr (by default the calling frame)
expr
Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>
system.time
system.time(1+1) repeat.time(1+1) system.time(sort(runif(1e6))) repeat.time(sort(runif(1e6)))
Run the code above in your browser using DataLab