• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (RS) hi-res clock function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >(RS) hi-res clock function (From: Roland Silver <email@hidden>)
 >Re: (RS) hi-res clock function (From: Alastair Houghton <email@hidden>)
 >Re: (RS) hi-res clock function (From: Alastair Houghton <email@hidden>)
 >Re: (RS) hi-res clock function (From: Jeff Koftinoff <email@hidden>)

  • Prev by Date: Re: string of rich text (rtf) tags to rtfData
  • Next by Date: Leopard Early Starter Kit - sth worth paying for?
  • Previous by thread: Re: (RS) hi-res clock function
  • Next by thread: Re: (RS) hi-res clock function
  • Index(es):
    • Date
    • Thread