mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 04:10:06 +00:00
NTP time offset calculation
This commit is contained in:
parent
f85bf9283a
commit
258466e02c
3 changed files with 154 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue