NTP time offset calculation

This commit is contained in:
Dan Paulat 2025-08-10 00:24:48 -05:00
parent f85bf9283a
commit 258466e02c
3 changed files with 154 additions and 20 deletions

View file

@ -48,8 +48,7 @@ struct NtpPacket
std::uint32_t rxTm_s; // Received time-stamp seconds.
std::uint32_t rxTm_f; // Received time-stamp fraction of a second.
std::uint32_t txTm_s; // The most important field the client cares about.
// Transmit time-stamp seconds.
std::uint32_t txTm_s; // Transmit time-stamp seconds.
std::uint32_t txTm_f; // Transmit time-stamp fraction of a second.
static NtpPacket Parse(const std::span<std::uint8_t> data);