Gets the timer value. |
||
Syntax |
r = toc() |
|
Outputs |
Name |
Description |
r |
The number of seconds since the 'tic' function was called. |
|
Example |
Syntax |
|
|
tic(); sleep(10); r = toc(); print('r = ', r); |
|
Comments |
The 'toc' function returns the number of seconds since the 'tic' function was called. The standard calling sequence is: tic(); instructions; r=toc(); The precision of this timer is the order of milliseconds. |
|
See Also: |