|
Time Shield Library
C++ library for working with time
|
Pool configuration. More...
#include <ntp_client_pool.hpp>
Public Types | |
| enum class | Aggregation { Median , BestDelay , MedianMadTrim } |
| Aggregation strategy for offset estimation. More... | |
Public Attributes | |
| std::size_t | sample_servers = 5 |
| Number of servers to sample per measurement. | |
| std::size_t | min_valid_samples = 3 |
| Minimum number of valid samples required to update offset. | |
| enum time_shield::NtpPoolConfig::Aggregation | aggregation = Aggregation::Median |
| double | smoothing_alpha = 1.0 |
| Exponential smoothing factor for offset updates. | |
| std::uint64_t | rng_seed = 0 |
| Random seed for server sampling; 0 uses time-based seed. | |
Pool configuration.
Definition at line 53 of file ntp_client_pool.hpp.
|
strong |
Aggregation strategy for offset estimation.
| Enumerator | |
|---|---|
| Median | |
| BestDelay | |
| MedianMadTrim | |
Definition at line 58 of file ntp_client_pool.hpp.
| enum time_shield::NtpPoolConfig::Aggregation time_shield::NtpPoolConfig::aggregation = Aggregation::Median |
| std::size_t time_shield::NtpPoolConfig::min_valid_samples = 3 |
Minimum number of valid samples required to update offset.
Definition at line 55 of file ntp_client_pool.hpp.
| std::uint64_t time_shield::NtpPoolConfig::rng_seed = 0 |
Random seed for server sampling; 0 uses time-based seed.
Definition at line 65 of file ntp_client_pool.hpp.
| std::size_t time_shield::NtpPoolConfig::sample_servers = 5 |
Number of servers to sample per measurement.
Definition at line 54 of file ntp_client_pool.hpp.
| double time_shield::NtpPoolConfig::smoothing_alpha = 1.0 |
Exponential smoothing factor for offset updates.
Definition at line 64 of file ntp_client_pool.hpp.