Delay()

Author: SKAN Last Modified: 20091210


A more accurate alternative to Sleep command to pause or wait execution, with high cpu usage. Based on QueryPerformanceCounter().

Delay( D=0.001 )

For the functions's parameters and return value, please see it's source code.

Remarks

The function is very simple in usage, but it lacks an external documentation.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=52083

License

nonexistent

Example

; #Include Delay.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox, % Delay( 0.008 ) ; Delay for 8ms