[lazarus] Sleep

Peter Vreman peter at freepascal.org
Wed Oct 16 16:53:34 EDT 2002


> Is there a replacement for the sleep() function?
>
> I just wanted to have a loop sleep for about 30 milliseconds at the end
> of each loop, but it appears that FPC doesn't include sleep().

Nanosleep()

or

tv.u_sec=0;
tv.u_msec=0;
Select(0,NULL,NULL,NULL,tv);

(maybe the field names are not correct)









More information about the Lazarus mailing list