[#TimeOffsets] = TimeOffsets :mrdocs: Tracks clock differences against outbound peers and warns when the local clock drifts. == Synopsis Declared in `<node/timeoffsets.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class TimeOffsets; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:TimeOffsets/2constructor.adoc[`TimeOffsets`] [.small]#[constructor]# | Construct a time‐offset tracker that reports through the given warnings subsystem. | xref:TimeOffsets/Add.adoc[`Add`] | Add a new time offset sample. | xref:TimeOffsets/Median.adoc[`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. | xref:TimeOffsets/WarnIfOutOfSync.adoc[`WarnIfOutOfSync`] | Raise warnings if the median time offset exceeds the warnings threshold. Returns true if warnings were raised. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#