Delay
Jump to navigation
Jump to search
Delays a specified number of milliseconds.
- Declaration
procedure Delay(MS: Word);
- Target
- Real, Protected
- Remarks
- Ms specifies the number of milliseconds to wait. Delay is an approximation, so the delay period will not last exactly Ms milliseconds.
- Sample Code
{Delay.PAS} {Sample code for the Delay, NoSound, and Sound procedures.} uses Crt; begin Sound(220); { Beep } Delay(200); { For 200 ms } NoSound; { Relief! } end.