Skip to content

Flow documentation · legacy product

Sleep ​

Declaration ​

procedure Sleep(Milliseconds: cardinal);

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Sleep(5000); //pauses program execution for 5,000 milliseconds (i.e. 5 seconds)
end;

Description ​

Pauses program execution for the specified number of milliseconds. The "cardinal" type is an unsigned integer. Note: Giving the procedure a negative value for Milliseconds may cause it to "sleep" indefinitely.