Re: Sleeping in nanos
Re: Sleeping in nanos
- Subject: Re: Sleeping in nanos
- From: Colin Hirsch <email@hidden>
- Date: Fri, 9 Feb 2007 10:43:54 +0100
On Thu, Feb 08, 2007 at 12:08:50PM -0500, Greg wrote:
>
> (On linux, the call to nanosleep(1) results in a sleep time that is
> two million times longer. On OS X, it is fifty thousand times
> longer. Imagine that kind of discrepancy with car brakes!)
So what you expect is that the resolution of the argument to the sleep
function matches the actual resolution of the sleep?
Linux with 50 Hz: void sleep20millis( unsigned );
Linux with 100 Hz: void sleep10millis( unsigned );
Linux with 250 Hz: void sleep4millis( unsigned );
Linux with 1000 Hz: void sleep1millis( unsigned );
...
...
Regards, Colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden