Re: AbsoluteToNanoseconds deprecated - so use what instead?
Re: AbsoluteToNanoseconds deprecated - so use what instead?
- Subject: Re: AbsoluteToNanoseconds deprecated - so use what instead?
- From: Tim Seufert <email@hidden>
- Date: Tue, 11 Sep 2012 11:09:51 -0700
On Sep 11, 2012, at 3:03 AM, Gerriet M. Denkmann <email@hidden> wrote:
> 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.
The first method shown in QA1398 doesn't require you to personally worry about integer overflow unless the time interval you plan to measure is over 584.9 years.
_______________________________________________
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