Re: Accuracy of timers?
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