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 15:59:33 +0700
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,
Thanks, helps a lot.
But: when I write: #import <kern/clock.h> Xcode does not find anything.This though gets found: #import <Kernel/kern/clock.h> But then clock.h has a reference: #include <kern/kern_types.h>
and Xcode complains again: file not found.
What to do?
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