Clock

From VLECK
Jump to: navigation, search

Time in seconds

Syntax

return = Clock();

Return Value

The time in seconds since start of NSM

Parameters

(none)

Example

A siren for 10 seconds:

started = Clock();
offset = 100;

while(Clock() - started < 10)
     Beep(440 + offset; 1000);
     offset = -1 * offset;
endwhile