ElapsedMilliseconds()

Syntax

Result.q = ElapsedMilliseconds()
Description
Returns the number of milliseconds that have elapsed since a specific time in the past.

Parameters

None.

Return value

Returns the elapsed time in milliseconds.

Remarks

The absolute value returned is of no use since it varies depending on the operating system. Instead, this function should be used to calculate time differences between multiple ElapsedMilliseconds() calls.

This function is relatively accurate: it may have a slight variation, depending on which operating system it is executed on, this is due to the fact that some systems have a lower timer resolution than others.

Example

  StartTime.q = ElapsedMilliseconds()     ; Get the actual value
  Delay(1000)                             ; Wait 1000 milliseconds
  Debug ElapsedMilliseconds() - StartTime ; Displayed value should be about 1000 milliseconds

See Also

Delay()

Supported OS

All

<- DoubleClickTime() - System Index - MemoryStatus() ->