Date: Wed, 17 Apr 2002 12:46:35 +0200 (SAT) From: John Hay <jhay@icomtek.csir.co.za> To: tlambert2@mindspring.com (Terry Lambert) Cc: phk@critter.freebsd.dk (Poul-Henning Kamp), arch@FreeBSD.ORG Subject: Re: get{bin,micro,nano}[up]time() - what precision ? Message-ID: <200204171046.g3HAkZZ32677@zibbi.icomtek.csir.co.za> In-Reply-To: <3CBD21B1.2767EE59@mindspring.com> from Terry Lambert at "Apr 17, 2002 00:18:09 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> Poul-Henning Kamp wrote: > > In message <3CBB6252.6BAA4E90@mindspring.com>, Terry Lambert writes: > > >SPARC had a 4uS resolution in ~1990; it did this by having a > > >hardware clock of very high resolution, and a low update > > >frequency, from which a delta was maintained in software, > > >rather than by having an update requirement for a full > > >timecounter like structure. > > > > As usual: Please don't pay attention to Terry, he is talking > > without checking his facts and appearantly doesn't even know > > that FreeBSD is way ahead of the pack when it comes to time > > keeping code. > > > I dislike increased imprecision. ... Uhm Terry, aren't you mixing up get{bin,micro,nano}[up]time() with {micro,nano}[up]time()? The last set gives you up to the machine's capability precision. That can be 1ns or better depending on the machine. Both sets are available for use in the kernel John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204171046.g3HAkZZ32677>