Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 11:37:46 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        Bill Studenmund <wrstuden@nas.nasa.gov>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, Terry Lambert <tlambert@primenet.com>, Hackers@FreeBSD.ORG
Subject:   Re: BSD XFS Port & BSD VFS Rewrite 
Message-ID:  <199908181737.LAA03569@mt.sri.com>
In-Reply-To: <Pine.SOL.3.96.990818101005.14430B-100000@marcy.nas.nasa.gov>
References:  <830.934961572@critter.freebsd.dk> <Pine.SOL.3.96.990818101005.14430B-100000@marcy.nas.nasa.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908181737.LAA03569>