Re: mach_absolute_time() vs. sleep()
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com On Apr 30, 2008, at 3:30 PM, Terry Lambert wrote: It should be: double mach_elapsed_time(uint64_t start, uint64_t endTime) { _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com Care to elaborate? This code works fine in all circumstances where sleep() is not called. On Apr 30, 2008, at 4:13 AM, Kristopher Matthews wrote: If you see my followup message, I wrote the sample code for this email incorrectly. My apologies. :) You are doing a couple of really simple things wrong, but the worst is being wrong about operator precedence order in C. -- Terry smime.p7s
participants (1)
-
Kristopher Matthews