Re: Kernel framework
Re: Kernel framework
- Subject: Re: Kernel framework
- From: Tom Seddon <email@hidden>
- Date: Tue, 11 Sep 2012 18:42:57 +0100
On 11 Sep 2012, at 18:20, Gerriet M. Denkmann wrote:
> I wanted to use absolutetime_to_nanoseconds as replacement for the deprecated AbsoluteToNanoseconds.
>
> I was since told that I cannot. And that QA1398 "Mach Absolute Time Units" is the way to go.
You are probably best off copying what Listing 2 does, by calling mach_timebase_info to find out how many ticks there are per second. If you're already calling mach_absolute_time, you won't need to link with anything extra.
(This is probably safer anyway, as the note points out that the mach_absolute_time result won't necessarily be in the same units as AbsoluteTime.)
--Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden