Equinox Online Help - Language Reference - A to Z

Home

Timer

Applies to
SyntaxTimer
Action[Function] Returns the value currently held in Equinox's internal timer.
ScopeUsable anywhere.
Notes

Equinox has its own internal timer. This timer is started when Equinox starts and counts continuously in 1/100ths of a second. After about 500 days, the timer's storage area runs out of room and the timer resets. This function returns the timer's current value in 1/100ths of a second.

Note that the value returns an integer and not a time value. You can use this function to time events over a short period of time, such as a few seconds or minutes.

CategoryTime handling
See Also Hms, Hmsadd, Hour, Minute, Now, Second, Timer64, TimeElapsed, TimeStart, TimedOut
Example

The following example uses the Timer function to time an operation. The result is printed in the Print window.

number StartPoint, StopPoint

StartPoint = Timer

...

| assign the stop point To a variable: If you try something
| ike Print "result: ", Timer - StartPoint, the Print
| statement will interfere with the result

StopPoint = Timer
Print "result:", (StopPoint - StartPoint) / 100,"secs"