Re: Including kern clock.h from a non-kext application
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fnG7yK4QgAwwsVeq+dWGuFPvt+Fpm6OWfdqxJlgkR1E=; b=wR7zVbx99tiGfsZw0B6IhHNzI3YTbPQ24kaRlfe9azff+sBGAadKS2yFsLVsyB6Usi s+R609kFY2lqFPj3rC7MaqgVvdC3nYZ5i5sZbPRRWzdmHtakB7OTOYcCLQEPNYIgSGh/ n+F3wYPiBGRth9PLm1PGWvfLv+QWpjcjjFrj4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kUneXNelB0vzv9nTJYKIER9HOKxwIzR3hHntwUZAEgNaGQSjtj7SSTsXACsEfXk42y nee2zboUjHor+lDEACzklnMGjDBHZxVyed1pVw4HQpX7idaEeiIpy7MMkiNcrXPeKeDJ O+L3ePnUUoboa6NCJMkJ4SaJ40kHBEN07sIGU= 2008/10/9 André Berg <andre.berg@email.de>:
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Herb Petschauer