You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#defineFRAC 4294967296. /* 2^32 as a double */
#defineU2LFP(a) (((unsigned long long) \
((a).tv_sec + JAN_1970) << 32) + \
(unsigned long long) \
((a).tv_usec / 1e6 * FRAC))
The key difference is this library is multiplying the fractional component by 4294967295 (std::u32::MAX) while the RFC dictates it should be multiplied by 4294967296. Hence this library's timestamps are sometimes slightly off.
The text was updated successfully, but these errors were encountered:
This library currently constructs NTP timestamps like so:
RFC 5905 does it like so:
The key difference is this library is multiplying the fractional component by 4294967295 (
std::u32::MAX
) while the RFC dictates it should be multiplied by 4294967296. Hence this library's timestamps are sometimes slightly off.The text was updated successfully, but these errors were encountered: