tictoc {matlab} | R Documentation |
Provides stopwatch timer. Function tic
starts the timer and toc
updates the elapsed time since the timer was started.
tic(gcFirst = FALSE) toc(echo = TRUE)
gcFirst |
logical. If TRUE , perform garbage collection prior
to starting stopwatch |
echo |
logical. If TRUE , print elapsed time to screen |
Provides analog to base::system.time
. Function toc
can be
invoked multiple times in a row.
P. Roebuck, roebuck@mdanderson.org
tic() for(i in 1:100) mad(runif(1000)) # kill time toc()