Descrition
This function is an extension of the normal Delay() function
of Pure Basic. DelayMicroSeconds() pause the execution
for the given time in microseconds.
Syntax
DelayMicroSeconds( Time.q )
Parameter
Time | The time of delay in microseconds. |
Return value
None
Snippet
Global QueryPerformanceFrequency.q : QueryPerformanceFrequency_(@QueryPerformanceFrequency)
Procedure DelayMicroSeconds(Time.q)
Protected StartTime.q, EndTime.q
QueryPerformanceCounter_(@StartTime)
Repeat
Delay(0)
QueryPerformanceCounter_(@EndTime)
Until (EndTime-StartTime)*1e6/QueryPerformanceFrequency > Time
EndProcedure