Time Shield Library
C++ library for working with time
|
Facilities for retrieving time using the Network Time Protocol. More...
Files | |
file | ntp_client.hpp |
Simple NTP client for querying time offset from NTP servers. | |
file | wsa_guard.hpp |
Singleton guard for WinSock initialization. | |
Classes | |
class | time_shield::NtpClient |
Simple Windows-only NTP client for measuring time offset. More... | |
class | time_shield::WsaGuard |
Singleton guard for WinSock initialization. More... | |
Facilities for retrieving time using the Network Time Protocol.
This module contains a minimal client capable of querying remote NTP servers to measure the offset between local and network time. It uses WinSock via the WsaGuard
helper and therefore works only on Windows.
WsaGuard
.