4#ifndef WATERLINKEDSONAR_SNTP_HPP
5#define WATERLINKEDSONAR_SNTP_HPP
27std::optional<std::chrono::system_clock::time_point>
sntp_query(
28 const std::string& server, std::chrono::milliseconds timeout,
29 std::uint16_t port = 123);
std::optional< std::chrono::system_clock::time_point > sntp_query(const std::string &server, std::chrono::milliseconds timeout, std::uint16_t port=123)
Asks an NTP server for its current time with a single SNTP (RFC 4330) query.