From owner-freebsd-hackers Wed Aug 18 10:40:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id B48D614C18 for ; Wed, 18 Aug 1999 10:40:13 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA00793; Wed, 18 Aug 1999 11:37:46 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA03569; Wed, 18 Aug 1999 11:37:46 -0600 Date: Wed, 18 Aug 1999 11:37:46 -0600 Message-Id: <199908181737.LAA03569@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Bill Studenmund Cc: Poul-Henning Kamp , Terry Lambert , Hackers@FreeBSD.ORG Subject: Re: BSD XFS Port & BSD VFS Rewrite In-Reply-To: References: <830.934961572@critter.freebsd.dk> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Both struct timespec and struct timeval are major mistakes, they > > make arithmetic on timestamps an expensive operation. Timestamps > > should be stored as integers using an fix-point notations, for > > instance 64bits with 32bit fractional seconds (the NTP timestamp), > > or in the future 128/48. ... > > > Extending from 64 to 128bits would be a cheap shift and increased > > precision and range could go hand in hand. > > I doubt we need more than 64 bit times. 2^63 seconds works out to > 292,279,025,208 years, or 292 (american) billion years. I think Poul's point is that in the future seconds is probably way too coarse grained. Computer's are getting faster all the time, and in the future we may need 64 seconds, plus an additional 64 bits for the fractions of a second, which will be necessary for accurate timekeeping. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message