[#TimeOffsets-Median]
= xref:TimeOffsets.adoc[TimeOffsets]::Median
:relfileprefix: ../
:mrdocs:

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e3a947338)&rsqb;&rsqb;
std::chrono::seconds
Median() const;
----

== Return Value

The median observed time offset, or 0 seconds when fewer than 5 samples exist&period;


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