time

Functions for working with time.

Summary
timeFunctions for working with time.
Functions
nowReturn the current time in seconds.
sleepSleep for the given number of seconds.
tickReturn a tick count which is the number of seconds since some unspecified time in the past (used by Stopwatch).
Types
StopwatchStopwatch useful for measuring time intervals.
Functions
Stopwatch.elapsedReturn the current total elapsed time.
Stopwatch.isRunningReturn TRUE if the stopwatch is running.
Stopwatch.resetStop the timer and reset the accumulated time.
Stopwatch.startStart a stopwatch.
Stopwatch.stopStop a stopwatch.

Functions

now

DECLARE NATIVE FUNCTION now(): Number

Return the current time in seconds.

sleep

DECLARE NATIVE FUNCTION sleep(seconds: Number)

Sleep for the given number of seconds.

tick

DECLARE NATIVE FUNCTION tick(): Number

Return a tick count which is the number of seconds since some unspecified time in the past (used by Stopwatch).

Types

Stopwatch

Stopwatch useful for measuring time intervals.

Functions

Stopwatch.elapsed

FUNCTION Stopwatch.elapsed(self: Stopwatch): Number

Return the current total elapsed time.

Stopwatch.isRunning

FUNCTION Stopwatch.isRunning(self: Stopwatch): Boolean

Return TRUE if the stopwatch is running.

Stopwatch.reset

FUNCTION Stopwatch.reset(INOUT self: Stopwatch)

Stop the timer and reset the accumulated time.

Stopwatch.start

FUNCTION Stopwatch.start(INOUT self: Stopwatch)

Start a stopwatch.

Stopwatch.stop

FUNCTION Stopwatch.stop(INOUT self: Stopwatch)

Stop a stopwatch.

DECLARE NATIVE FUNCTION now(): Number
Return the current time in seconds.
DECLARE NATIVE FUNCTION sleep(seconds: Number)
Sleep for the given number of seconds.
DECLARE NATIVE FUNCTION tick(): Number
Return a tick count which is the number of seconds since some unspecified time in the past (used by Stopwatch).
Stopwatch useful for measuring time intervals.
FUNCTION Stopwatch.elapsed(self: Stopwatch): Number
Return the current total elapsed time.
FUNCTION Stopwatch.isRunning(self: Stopwatch): Boolean
Return TRUE if the stopwatch is running.
FUNCTION Stopwatch.reset(INOUT self: Stopwatch)
Stop the timer and reset the accumulated time.
FUNCTION Stopwatch.start(INOUT self: Stopwatch)
Start a stopwatch.
FUNCTION Stopwatch.stop(INOUT self: Stopwatch)
Stop a stopwatch.
Close