Work item list: l_fp_time and l_fp_offset

Gary E. Miller gem at rellim.com
Wed Apr 26 20:05:59 UTC 2017


Yo Achim!

On Wed, 26 Apr 2017 21:59:32 +0200
Achim Gratz via devel <devel at ntpsec.org> wrote:

> Hal Murray via devel writes:
> > devel at ntpsec.org said:  
> >> Work item: Replace
> >>   typedef uint64_t l_fp;
> >> with
> >>   typedef uint64_t l_fp_time;
> >>   typedef int64_t l_fp_offset;   
> >
> > I think that should be rejected in favor of eliminating l_fp except
> > at the very edge and doing the pivot at the edge.  
> 
> What exactly do you suggest to replace it with?

Timespec with time64_t.  As Linux 64-bit uses now for native time.  Then
the timestamp arithmetic does not lose precision and the first time64_t
rollover is centuries from now.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170426/3bc04aa9/attachment.bin>


More information about the devel mailing list