• 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: NSNull and distinct objective-C type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNull and distinct objective-C type


  • Subject: Re: NSNull and distinct objective-C type
  • From: David Duncan <email@hidden>
  • Date: Thu, 4 Jun 2009 13:22:24 -0700

On Jun 4, 2009, at 5:39 AM, email@hidden wrote:

Hello All,

I am facing an issue in use of mach_absolute_time().

mach_absolute_time() gives drift even when NTP timing update is on.

sleep(5);

Your assuming that sleep() provides drift free timing, which it does not - read the man page x-man-page://3/sleep for details.


If you want something closer to a drift free timer, then you need to determine when you want to wake up and use mach_wait_until() or a higher level API to wait until that time.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >NSNull and distinct objective-C type (From: Steven Hamilton <email@hidden>)
 >Re: NSNull and distinct objective-C type (From: email@hidden)

  • Prev by Date: Re: sleep() drift
  • Next by Date: Re: Touchscreens and control scaling
  • Previous by thread: Re: sleep() drift
  • Next by thread: Help with SHA class
  • Index(es):
    • Date
    • Thread