New config feature - time1 can declare GPS wraparound compensation

Gary E. Miller gem at rellim.com
Fri Aug 16 22:14:10 UTC 2019


Yo Sanjeev!

On Sat, 17 Aug 2019 06:07:14 +0800
Sanjeev Gupta <ghane0 at gmail.com> wrote:

> Gary,
> 
> The widest integer I have is "long long int", which is 8 bytes.  I
> need a bit more for "nuber of secs in 8192 weeks".

Here is my math:

seconds in 8192 weeks = 8192 weeks * 7 days in week * 24 hours in a day *
                        60 minutes in an hour * 60 seconds in a minute
 
>>> a = 8192 * 7 * 24 * 60 * 60
>>> "%x" % a
'127500000'

Looks like 5 bytes to me.  Is my math wrong?

> Size of long long int: 8 bytes

Looks good to me.

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: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190816/d5961bf7/attachment.bin>


More information about the devel mailing list