• 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: Equivalent to gethrtime()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent to gethrtime()


  • Subject: Re: Equivalent to gethrtime()
  • From: Brendan Younger <email@hidden>
  • Date: Wed, 28 Nov 2001 13:50:25 -0500

On Wednesday, November 28, 2001, at 09:04 AM, Malte Tancred wrote:

> Is there a Mac OS X equivalent to the gethrtime() nanosecond counter
> found on Solaris?

From the Mac OS X 10.1 Release Notes:

IMPORTANT:
Processes requiring high resolution processor based timing information
should use the one of the high level abstractions provided by Mac OS X
such as mach_absolute_time or UPTime and should never attempt to access
the hardware directly.

Check out /usr/include/mach/mach_time.h and clock.h in the
Kernel.framework.

Brendan Younger


References: 
 >Equivalent to gethrtime() (From: Malte Tancred <email@hidden>)

  • Prev by Date: Re: Standard OS X Compression format
  • Next by Date: Re: Can server send message to client through NSConnection
  • Previous by thread: Re: Equivalent to gethrtime()
  • Next by thread: Creating a thumbnail without Photshop. How?
  • Index(es):
    • Date
    • Thread