tic,toc | 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.
toc
invisibly returns the elapsed time as a named scalar (vector).
P. Roebuck proebuck@mdanderson.org
tic()
for(i in 1:100) mad(runif(1000)) # kill time
toc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.