Description Usage Arguments Value Author(s) See Also Examples
Repeats timing expr until minSec is reached
1 | repeat.time(expr, gcFirst = TRUE, minSec = 0.5, envir=parent.frame())
|
expr |
Valid R expression to be timed. |
gcFirst |
Logical - should a garbage collection be performed
immediately before the timing? Default is |
minSec |
number of seconds to repeat at least |
envir |
the environment in which to evaluate |
A object of class "proc_time"
: see
proc.time
for details.
Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>
1 2 3 4 | system.time(1+1)
repeat.time(1+1)
system.time(sort(runif(1e6)))
repeat.time(sort(runif(1e6)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.