[lazarus] Sleep

Marco van de Voort marcov at stack.nl
Wed Oct 16 16:52:40 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().

sleep is a win32 function, so it is in unit Windows.

Linux and FreeBSD have nanosleep (so do your msec *1000) in unit linux.

Some of these things are current being addressed in the 1.1 RTL cleanups, but
this isn't finished yet.

More information about the Lazarus mailing list