• 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: mach_absolute_time() vs. sleep()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mach_absolute_time() vs. sleep()


  • Subject: Re: mach_absolute_time() vs. sleep()
  • From: Terry Lambert <email@hidden>
  • Date: Wed, 30 Apr 2008 13:30:20 -0700

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. :)

It should be:

double mach_elapsed_time(uint64_t start, uint64_t endTime)
{

You are doing a couple of really simple things wrong, but the worst is being wrong about operator precedence order in C.


-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: mach_absolute_time() vs. sleep()
      • From: Kristopher Matthews <email@hidden>
References: 
 >mach_absolute_time() vs. sleep() (From: Kristopher Matthews <email@hidden>)
 >Re: mach_absolute_time() vs. sleep() (From: Terry Lambert <email@hidden>)
 >Re: mach_absolute_time() vs. sleep() (From: Kristopher Matthews <email@hidden>)

  • Prev by Date: Virtual COM driver issue - dlil_ouput output error retval =37
  • Next by Date: Re: mach_absolute_time() vs. sleep()
  • Previous by thread: Re: mach_absolute_time() vs. sleep()
  • Next by thread: Re: mach_absolute_time() vs. sleep()
  • Index(es):
    • Date
    • Thread