[SDL] Why not nanosleep()?

Sam Lantinga slouken at devolution.com
Tue Apr 4 11:25:11 PDT 2000

> Loren Osborn wrote:

> > The problem is that sleep(0) isn't as predictable/portable as we might
> > hope... If I remember correctly from FileNET, something like this works
> > reasonably well on WinNT, but I wouldn't trust it on Linux.

> The sleep(0) works okay on Linux (we use it in Quadra). In Windows, it
> is Sleep(0) you have to use (damn Win32, why the useless
> difference???)...

sleep() sleeps seconds
Sleep() sleeps milliseconds

	-Sam Lantinga, Lead Programmer, Loki Entertainment Software

More information about the SDL mailing list