Do we need a few new types?

Eric S. Raymond esr at thyrsus.com
Sat Mar 11 11:25:27 UTC 2017


Achim Gratz <Stromeko at nexgo.de>:
> Gary E. Miller writes:
> > Or, just go with the flow and use the epoch in a timepec like
> > structure:
> >
> > ntp_time_t {
> > 	int epoch;
> > 	uint32 seconds;
> >         uint32 faction;
> > }
> >
> > That would stop all that shifting back and forth.
> 
> Oh please, no.  Consider using a 128bit integer type when the time comes
> around, but not such an abomination.  Specifically not that useless
> mucking about with integral and fractional seconds.  You report the
> time in integral units of 2^-32 seconds, period.

Achim is right.  This is exactly the both I had to *remove*.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.



More information about the devel mailing list