ElapsedMilliseconds()
Syntax
Result = 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
Global Start = ElapsedMilliseconds() Procedure TimerEvent() Debug "Elapsed time in ms: " + Str(ElapsedMilliseconds()-Start) EndProcedure OpenWindow(0, 0, 0, 100, 100, "Timer") AddWindowTimer(0, 0, 1000) BindEvent(#PB_Event_Timer, @TimerEvent())
Supported OS
All