Delay()

Syntax

Delay(Time)
Description
Halts the program execution for the specified amount of time.

Parameters

Time The delay time in milliseconds. The actual delay may be longer than the specified time.

Return value

None.

Remarks

Delay is especially useful in event loops with WindowEvent() or ExamineKeyboard(), so these functions do not "eat" the entire CPU power.

In fact, this function halts the current thread.

See Also

ElapsedMilliseconds()

Supported OS

All

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