Indy 9
Sleep
Unit: IdGlobal
Suspends the current thread for the specified number of milliseconds.
procedure Sleep(ATime: cardinal);
Unit
IdGlobal
Parameters
ATime: cardinal
The number of milliseconds to sleep.
Description
Sleep is a procedure used to suspend the current thread of execution for the number of milliseconds specified in ATime. While the current thread is suspended, control passes to other processes with an equal or higher priority.

Sleep encapsulates the platform-specific procedures or functions used to suspend the current thread of execution. For the Windows platform, the procedure used is Windows.Sleep. On the Linux platform, Sleep tries to select a non-existent socket handle for the specified number of milliseconds.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.