Back to Core Functions
toc
Read elapsed time from stopwatch
Syntax
t = toc
Description
Reads the elapsed time in seconds since the most recent tic call. Prints the elapsed time and returns it as a number. Throws an error if called without a preceding tic.
Returns
Elapsed time in seconds (scalar)