HyperMath

toc

toc

Previous topic Next topic No expanding text in this topic  

toc

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

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:

tic