Functions for working with time.
time | Functions for working with time. |
Functions | |
now | Return the current time in seconds. |
sleep | Sleep for the given number of seconds. |
tick | 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. | Return the current total elapsed time. |
Stopwatch. | Return TRUE if the stopwatch is running. |
Stopwatch. | Stop the timer and reset the accumulated time. |
Stopwatch. | Start a stopwatch. |
Stopwatch.stop | Stop a stopwatch. |
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).
Return the current time in seconds.
DECLARE NATIVE FUNCTION now(): Number
Sleep for the given number of seconds.
DECLARE NATIVE FUNCTION sleep( seconds: Number )
Return a tick count which is the number of seconds since some unspecified time in the past (used by Stopwatch).
DECLARE NATIVE FUNCTION tick(): Number
Return the current total elapsed time.
FUNCTION Stopwatch.elapsed( self: Stopwatch ): Number
Return TRUE if the stopwatch is running.
FUNCTION Stopwatch.isRunning( self: Stopwatch ): Boolean
Stop the timer and reset the accumulated time.
FUNCTION Stopwatch.reset( INOUT self: Stopwatch )
Start a stopwatch.
FUNCTION Stopwatch.start( INOUT self: Stopwatch )
Stop a stopwatch.
FUNCTION Stopwatch.stop( INOUT self: Stopwatch )