|
Time Shield Library
C++ library for working with time
|
Core NTP query logic that parses packets and computes offsets. More...
#include <ntp_client_core.hpp>
Public Member Functions | |
| bool | query (IUdpTransport &transport, const std::string &host, int port, int timeout_ms, int &out_error_code, int64_t &out_offset_us, int64_t &out_delay_us, int &out_stratum) noexcept |
| Perform one NTP transaction using a UDP transport. | |
Static Private Member Functions | |
| static bool | get_now_us (uint64_t &out) noexcept |
| Read current realtime clock in microseconds. | |
Core NTP query logic that parses packets and computes offsets.
Definition at line 16 of file ntp_client_core.hpp.
|
inlinestaticprivatenoexcept |
Read current realtime clock in microseconds.
Definition at line 76 of file ntp_client_core.hpp.
|
inlinenoexcept |
Perform one NTP transaction using a UDP transport.
Definition at line 19 of file ntp_client_core.hpp.