<< timeit | Time functions | weekday >> |
toc() |
t = toc() |
toc(timer_value) |
t = toc(timer_value) |
a unsigned integer 64 bit: value of internal timer of the tic function.
a double: number of seconds since last call to tic function (Precision in order of millisecond).
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.
tic()
sleep(10)
toc()
sleep(10)
toc()
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET