site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 07/01/2005 at 11:45 AM, Matt Jaffa <matt@knowligent.com> wrote:
I was wondering if there is a way to get the current time of the day it is on the system from within a kernel extension I am writing. I realize that the gettimeofday system call is only available outside of the kernel? Any way of doing this?
The clock_get_calendar_value function declared in kern/clock.h may do what you want. If I remember correctly, it returns the seconds and nanoseconds since 1970. geoff -- Geoffrey Schmit Senior Software Engineer National Instruments geoffrey.schmit@ni.com www.ni.com _______________________________________________ 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)
-
Geoffrey Schmit