Re: sleep() vs sleepUntilDate
Re: sleep() vs sleepUntilDate
- Subject: Re: sleep() vs sleepUntilDate
- From: Lance Bland <email@hidden>
- Date: Mon, 23 Sep 2002 10:45:31 -0400
On Monday, September 23, 2002, at 09:19 AM, Peter Sichel wrote:
>
sleep() -
>
>
Is almost useless to Cocoa developers. It sleeps your process
>
to allow other BSD commands to execute. It's granularity is limited
>
to seconds.
It is useful, it works, it does not block other threads in the same
process, and there are also these:
sleep(); // seconds
usleep(); microseconds
nanosleep(); // nanoseconds. I have not used this personally, and the
prototype is not in the 10.1 headers.
and they all work with NSThread.
------------------------------------
Lance Bland
mailto:email@hidden
VVI Is The #1 Visual-Report Tool Developer For Mac OS X
http://www.vvi.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.