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