Member of the timing class.
toc
Stops the stopwatch timer and outputs the elapsed time in seconds. Use toc with tic to determine the computation time of a specific code segment.
Examples
ticfor i = 1:100000a = sqrt(2);endtoc
clockcputimetic