mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 07:49:21 +02:00
define HAS_SLEEP and add a very simple sleep implementation
git-svn-id: trunk@23266 -
This commit is contained in:
parent
3137c6ac4a
commit
601cc80fc6
@ -25,6 +25,7 @@ interface
|
||||
{ force ansistrings }
|
||||
{$H+}
|
||||
|
||||
{$DEFINE HAS_SLEEP}
|
||||
{ Include platform independent interface part }
|
||||
{$i sysutilh.inc}
|
||||
|
||||
@ -628,6 +629,12 @@ begin
|
||||
ExecuteProcess := ExecuteProcess (Path, CommandLine);
|
||||
end;
|
||||
|
||||
procedure Sleep(Milliseconds: cardinal);
|
||||
begin
|
||||
// Amiga dos.library Delay() has precision of 1/50 seconds
|
||||
Delay(Milliseconds div 20);
|
||||
end;
|
||||
|
||||
|
||||
{****************************************************************************
|
||||
Initialization code
|
||||
|
Loading…
Reference in New Issue
Block a user