Sign in Join
FPDoc Onlineexperiment

Sleep procedure

In unit sysutils

Suspend execution of a program for a certain time.

Declaration

pascal
procedure Sleep(milliseconds: Cardinal)

Description

Sleep suspends the execution of the program for the specified number of milliseconds ( milliseconds). After the specified period has expired, program execution resumes.

The indicated time is not exact, i.e. it is a minimum time. No guarantees are made as to the exact duration of the suspension.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.