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 scalar. If |
echo |
logical scalar. If |
Provides analog to system.time
.
Function toc
can be invoked multiple times in a row.
P. Roebuck proebuck1701@gmail.com
tic()
for(i in 1:100) mad(runif(1000)) # kill time
toc()