Re: Equivalent to gethrtime()
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