tictoc {matlab} | R Documentation |
Provides stopwatch timer. Function tic
starts the timer and toc
displays the elapsed time since the timer was started.
tic(gcFirst = FALSE) toc()
gcFirst |
logical. If TRUE , perform garbage collection prior
to starting stopwatch |
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()