Yo Hal! On Thu, 09 Mar 2017 23:30:43 -0800 Hal Murray <hmur...@megapathdsl.net> wrote:
> I'd expect there would be one place that converts ntp to unix and one > place that converts unix to ntp. Actually, the latter isn't > necessary except maybe for debugging. You don't really need ntp to > unix because you are going to subtract now to get a delta. You can > get that by converting now to ntp and subtracting that. Unix time needs to be converted to l_fp when it is sent out over the wire. For example, in ntpd/ntp_packetstamp.c. That is a place that does direct conversion to NTP Epoch and also uses the macro. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@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
pgpFAI3CEZ6Vc.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel