CRT Documentation: Reference

Delay

[This procedure has changed from its original DOS version.]

Delays a specified number of milliseconds.

procedure Delay(
  MS: cardinal
);

Parameters

MS
[in] Specifies the number of milliseconds to wait.

Remarks

Internally Delay calls the Win32 API function Sleep, therefore any timing issues experienced with Sleep will also be experienced with Delay. The Delphi version of Delay takes a cardinal rather than a word as the parameter.

See Also

Crt Overview