Re: Including kern clock.h from a non-kext application
Re: Including kern clock.h from a non-kext application
- Subject: Re: Including kern clock.h from a non-kext application
- From: "Herb Petschauer" <email@hidden>
- Date: Thu, 9 Oct 2008 13:45:06 -0700
2008/10/9 André Berg <email@hidden>:
> Hi,
>
> So what's the secret to be able to include
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/clock.h
> ?
{Snip}
Err... you don't. Are you writing a kernel extension? No? Then
stick to the userland frameworks :-)
Try:
#include <mach/mach.h>
#include <mach/mach_time.h>
That will give you mach_absolute_time() (search the archives).
UpTime() is also an option (search the archives).
Good luck.
Cheers,
-H.
_______________________________________________
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