toc
Read the stopwatch timer.
📝Syntax
toc()
t = toc()
toc(timer_value)
t = toc(timer_value)
📥Input Arguments
Parameter Description
timer_value a unsigned integer 64 bit: value of internal timer of the tic function.
📤Output Arguments
Parameter Description
t a double: number of seconds since last call to tic function (Precision in order of millisecond).
📄Description

The sequence of commands tic(); commands ; t = toc() returns the number of seconds required for the commands.

Consecutive calls to the toc function with no input return the elapsed since the most recent tic.

Consecutive calls to the toc function with the same timerVal input return the elapsed time since the tic function call that corresponds to that input.

💡Examples
tic()
sleep(10)
toc()
sleep(10)
toc()
🔗See Also
ticclock
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub