Compute and return the median of the collected time offset samples. The median is returned as 0 when there are less than 5 samples.

Synopsis

Declared in <node/timeoffsets.h>

[[requires_capability(0x7f2e3a947338)]]
std::chrono::seconds
Median() const;

Return Value

The median observed time offset, or 0 seconds when fewer than 5 samples exist.

Created with MrDocs