System.Classes.TThread.Sleep

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure Sleep(Timeout: Integer); static;

C++

static void __fastcall Sleep(int Timeout);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Suspend the execution of the thread for a specified amount of time.

Use Sleep to suspend the execution of the thread for Timeout milliseconds. While the current thread is suspended, the control passes to other processes with an equal or higher priority.

See Also