• 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: Accuracy of timers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accuracy of timers?


  • Subject: Re: Accuracy of timers?
  • From: Joar Wingfors <email@hidden>
  • Date: Wed, 22 Apr 2009 21:47:38 -0700


On 22 apr 2009, at 21.31, M Pulis wrote:

Expect the same here. I believe they are not guaranteed for accuracy... from Apple:

"Because of the various input sources a typical run loop manages, the effective resolution of the time interval for a timer is limited to on the order of 50-100 milliseconds."


Basically, it's up to you. Timers "fire" on a run loop on a particular thread. Your timers will be affected by work scheduled on that run loop / thread. If you schedule your timers on an idle run loop / thread, I think that you'll find that they're reasonably precise - All depending on your requirements, of course.

j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Accuracy of timers? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Accuracy of timers? (From: M Pulis <email@hidden>)

  • Prev by Date: Re: Accuracy of timers?
  • Next by Date: Re: Accuracy of timers?
  • Previous by thread: Re: Accuracy of timers?
  • Next by thread: Re: Accuracy of timers?
  • Index(es):
    • Date
    • Thread