It looks like the milliseconds timestamp returned by the request_time method does not return millisecond precision because the packet.transmited_timestamp_sec_frac is not used.
See:
|
double milliseconds = (double)txTm * 1000l; |
Proposed fix:
double milliseconds = (double)txTm * 1000l + (((double)packet.transmited_timestamp_sec_frac/(double)UINT32_MAX) * 1000.0);
It looks like the milliseconds timestamp returned by the request_time method does not return millisecond precision because the packet.transmited_timestamp_sec_frac is not used.
See:
NTP-client/src/ntp_client.cpp
Line 122 in 787247e
Proposed fix:
double milliseconds = (double)txTm * 1000l + (((double)packet.transmited_timestamp_sec_frac/(double)UINT32_MAX) * 1000.0);