tictoc {matlab} | R Documentation |
MATLAB timer functions
Description
Provides stopwatch timer. Function tic
starts the timer and toc
updates the elapsed time since the timer was started.
Usage
tic(gcFirst=FALSE)
toc(echo=TRUE)
Arguments
gcFirst |
logical scalar. If |
echo |
logical scalar. If |
Details
Provides analog to system.time
.
Function toc
can be invoked multiple times in a row.
Author(s)
P. Roebuck proebuck1701@gmail.com
Examples
tic()
for(i in 1:100) mad(runif(1000)) # kill time
toc()
[Package matlab version 1.0.4.1 Index]