Tracks clock differences against outbound peers and warns when the local clock drifts.
Declared in <node/timeoffsets.h>
class TimeOffsets;
| Name | Description |
|---|---|
TimeOffsets [constructor] | Construct a time-offset tracker that reports through the given warnings subsystem. |
Add | Add a new time offset sample. |
Median | Compute and return the median of the collected time offset samples. The median is returned as 0 when there are less than 5 samples. |
WarnIfOutOfSync | Raise warnings if the median time offset exceeds the warnings threshold. Returns true if warnings were raised. |