From owner-freebsd-arch Fri Oct 26 15:11:35 2001 Delivered-To: freebsd-arch@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 8244B37B44B; Fri, 26 Oct 2001 15:11:22 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA12665; Fri, 26 Oct 2001 16:25:10 -0700 (PDT) Date: Fri, 26 Oct 2001 16:25:09 -0700 (PDT) From: Julian Elischer To: Matthew Dillon Cc: John Baldwin , Poul-Henning Kamp , arch@FreeBSD.ORG, Peter Wemm , Bakul Shah Subject: Re: 64 bit times revisited.. In-Reply-To: <200110262147.f9QLlJ838887@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG trouble is, that ticks are: 1: not guaranteed to be constant 2/ inaccurate. also, you can represent ticks in terms of 1/(2^64) units, certainly to the accuracy of the crystals that we use for timekeeping at this time. On Fri, 26 Oct 2001, Matthew Dillon wrote: > > :> The phrase 'no freaking way' comes to mind. > :> > :> You guys are outsmarting yourselves. Seconds, ok. That's it. Nothing > :> else. The *VAST* majority of programs only need seconds, it would be > :> utterly stupid to require that they mess around with some weird fixed > :> point quantity when all they want is seconds, no matter how supposedly > :> 'simple' that messing around is (i.e. '>> 64' is not acceptable). > :> > :> -Matt > : > :Umm. Dude, this is for the kernel's internal representations. We can massage > :it in libc or in the kernel before it gets to userland. We do have to maintain > :compatibility. Slow down and think about this for a second. > : > :-- > : > :John Baldwin -- http://www.FreeBSD.org/~jhb/ > > The best kernel-internal time representnation is ticks, with a simple > baseline cache mechanism to convert it to other formats (e.g. as > required by NFS, UFS, userland, etc...). Nothing beats ticks... > a binary fixed point format doesn't even come *close* to being better > then straight ticks. > > -Matt > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message