site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Pd5+BJdtf3Z+Lg5zezPfgIFO/Cbuwq4uyOqh7BDmxJdKYDT1r1DHseVpA4W979DCKHW6Y8bgkAyg99L868D47RlQaWoYaOgtbU1mYgqr4niMdfOKzFxCYLyPQ4qw9X0o2WGgT7Hgrz4TDgJP7t0Y5Aci4uXzgVqQIspmQ65ezh0= If you want to get a clock error estimate from within the kernel, what do you want to use as your reference clock? The NTP error estimate is based on clock skew, which requires two clocks. It would appear that this would require porting an NTP (or other protocol to query remote clocks) client into kernel space or else writing some user-space code to implement/utilize an NTP client and pass the information to the kernel. Jitter between the CPU clock and the BIOS clock is not sufficient for this purpose. -Karl On Fri, 7 Jan 2005 13:26:31 -0800, Sean Peisert <peisert@gmail.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.
You can follow the code for gettimeofday() and just call
Is there an equivalent to this for getting the error estimate that ntp_adjtime() gives?
-- Sean Peisert http://www.sdsc.edu/~peisert/
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)
-
Karl Magdsick