Re: AbsoluteToNanoseconds deprecated - so use what instead?
Re: AbsoluteToNanoseconds deprecated - so use what instead?
- Subject: Re: AbsoluteToNanoseconds deprecated - so use what instead?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 11 Sep 2012 17:03:21 +0700
On 11 Sep 2012, at 16:41, Quinn The Eskimo! <email@hidden> wrote:
>
> On 11 Sep 2012, at 10:38, Phil Jordan <email@hidden> wrote:
>
>> Hmm, this is a kext target, right?
>
> If not (that is, you're doing this from user space) you should use mach_timebase_info, as shown in QA1398 "Mach Absolute Time Units".
>
> <http://developer.apple.com/library/mac/#qa/qa1398/_index.html>
No, this is not a kext. And using mach_timebase_info() works fine.
But I thought there would be a simpler, not-deprecated way, without worrying about integer overflows.
Maybe there is none.
What I really want: something to measure relative times less than a microsecond.
Both NSDate and gettimeofday have only microsecond accuracy. And mach_absolute_time uses "ticks" whose value depends on the cpu.
Is there some other (simple, non-deprecated) time function to use?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden