• 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: gettimeofday cost on intel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettimeofday cost on intel?


  • Subject: Re: gettimeofday cost on intel?
  • From: Matt Watson <email@hidden>
  • Date: Tue, 9 May 2006 09:44:09 -0700


On May 9, 2006, at 9:32 AM, Andrew Gallatin wrote:


Matt Watson writes:

On May 9, 2006, at 8:11 AM, Andrew Gallatin wrote:


I need a cheap way to measure events with at least a 10ms granularity
that is monotonically increasing, regardless of the CPU my thread has
been scheduled upon.

I'd be surprised if mach_absolute_time() does not work for this.

I did not know about this. Nm reveals its symbol in libc (at least on ppc). Is it documented somewhere? Does it also use the commpage?

Yes, it uses the commpage. Here's a technote on its usage:

http://developer.apple.com/qa/qa2004/qa1398.html

If you don't need the conversion to nanoseconds, you can just use the raw function.

matt.
_______________________________________________
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


References: 
 >gettimeofday cost on intel? (From: Andrew Gallatin <email@hidden>)
 >Re: gettimeofday cost on intel? (From: Matt Watson <email@hidden>)
 >Re: gettimeofday cost on intel? (From: Andrew Gallatin <email@hidden>)

  • Prev by Date: Re: gettimeofday cost on intel?
  • Next by Date: OpenDirectory: creating a LocalCachedUser?
  • Previous by thread: Re: gettimeofday cost on intel?
  • Next by thread: OpenDirectory: creating a LocalCachedUser?
  • Index(es):
    • Date
    • Thread