• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting current time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting current time


  • Subject: Re: Getting current time
  • From: Karl Magdsick <email@hidden>
  • Date: Sat, 8 Jan 2005 00:59:17 -0500

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 <email@hidden> 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting current time
      • From: Sean Peisert <email@hidden>
References: 
 >Getting current time (From: Matt Jaffa <email@hidden>)
 >Re: Getting current time (From: William Kucharski <email@hidden>)
 >Re: Getting current time (From: Matt Jaffa <email@hidden>)
 >Re: Getting current time (From: Sean Peisert <email@hidden>)

  • Prev by Date: Re: Getting current time
  • Next by Date: Re: Getting current time
  • Previous by thread: Re: Getting current time
  • Next by thread: Re: Getting current time
  • Index(es):
    • Date
    • Thread