Re: (RS) hi-res clock function
Re: (RS) hi-res clock function
- Subject: Re: (RS) hi-res clock function
- From: Roland Silver <email@hidden>
- Date: Wed, 25 Oct 2006 07:23:10 -0600
On Oct 25, 2006, at 7:01 AM, Jeff Koftinoff wrote:
In addition, keep in mind that all time functions are only as
accurate as the kernel scheduler anyways - For instance if you
call gettimeofday or get the ppc tb reg you may get a very accurate
count - But then before you even get to use the time value your
application may get pre-empted by some higher priority function.
When it is scheduled back again in may be 5 or 10 or more
milliseconds later than your accurate value specifies.
So be sure to make your algorithms allow for this...
Jeff Koftinoff
I DID allow for that by running the [NSDate date] code 1000 times,
taking the minimum of the 1000 elapsed times.
--Roland Silver
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden