toc
Read the elapsed time from a tic.
Syntax
Section titled “Syntax”toct = toct = toc(tStart)Description
Section titled “Description”Returns the elapsed wall-clock time in seconds since the matching tic. Without a return value, prints the elapsed time. With a tStart argument from tic, reads that specific timer.
Example
Section titled “Example”tic; for i=1:1000; end; toc