On Jun 4, 2009, at 5:39 AM, harpreet_si...@oxyent.com 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com