فهرست منبع

+ added a quick'n'dirty Sysutils.Sleep() implementation

git-svn-id: trunk@11965 -
Károly Balogh 17 سال پیش
والد
کامیت
b683ddf406
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      rtl/morphos/sysutils.pp

+ 7 - 0
rtl/morphos/sysutils.pp

@@ -24,6 +24,7 @@ interface
 { force ansistrings }
 {$H+}
 
+{$DEFINE HAS_SLEEP}
 { Include platform independent interface part }
 {$i sysutilh.inc}
 
@@ -647,6 +648,12 @@ begin
   ExecuteProcess := ExecuteProcess (Path, CommandLine);
 end;
 
+procedure Sleep (Milliseconds: cardinal);
+begin
+ // Amiga/MorphOS dos.library Delay() has precision of 1/50 seconds
+ Delay(Milliseconds div 20);
+end;
+
 
 {****************************************************************************
                               Initialization code