next up previous contents index
Next: TextColor Up: Procedures and Functions Previous: AssignCrt

Delay

   

Declaration:

Procedure Delay (DTime: Word) ;

Description:

Delay waits a specified number of milliseconds. The number of specified seconds is a approximation, and may be off a lot, if system load is high.

Errors:

None

See also:

Sound, NoSound

Example
Program Example15;
uses Crt;

{ Program to demonstrate the Delay function. }
var
  i : longint;
begin
  WriteLn('Counting Down');
  for i:=10 downto 1 do
   begin
     WriteLn(i);
     Delay(1000); {Wait one second}
   end;     
  WriteLn('BOOM!!!'); 
end.



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998