Re: AbsoluteToNanoseconds deprecated - so use what instead?
Re: AbsoluteToNanoseconds deprecated - so use what instead?
- Subject: Re: AbsoluteToNanoseconds deprecated - so use what instead?
- From: Phil Jordan <email@hidden>
- Date: Tue, 11 Sep 2012 10:19:59 +0200
Hi Gerriet,
On Tue, Sep 11, 2012 at 9:55 AM, Gerriet M. Denkmann
<email@hidden> wrote:
> DriverServices.h says:
> AbsoluteToNanoseconds(AbsoluteTime absoluteTime)
> __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA,
> __IPHONE_NA);
>
> So what I am to use instead?
There is a function,
extern void absolutetime_to_nanoseconds(
uint64_t abstime,
uint64_t *result);
declared in <kern/clock.h>, which hasn't been marked deprecated and
which is what AbsoluteToNanoseconds() uses internally.
Hope that helps,
phil
_______________________________________________
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