CRT Documentation: Reference |
[This procedure has changed from its original DOS version.]
Delays a specified number of milliseconds.
procedure Delay( MS: cardinal );
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.