[#TimeOffsets]
= TimeOffsets
:mrdocs:

Tracks clock differences against outbound peers and warns when the local clock drifts&period;

== Synopsis

Declared in `&lt;node&sol;timeoffsets&period;h&gt;`

[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&hyphen;offset tracker that reports through the given warnings subsystem&period;
| xref:TimeOffsets/Add.adoc[`Add`] 
| Add a new time offset sample&period;
| xref:TimeOffsets/Median.adoc[`Median`] 
| Compute and return the median of the collected time offset samples&period; The median is returned as 0 when there are less than 5 samples&period;
| xref:TimeOffsets/WarnIfOutOfSync.adoc[`WarnIfOutOfSync`] 
| Raise warnings if the median time offset exceeds the warnings threshold&period; Returns true if warnings were raised&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
