NtpClockMeasurement Class
The result of NtpClient.MeasureAsync: the clock offset agreed on by the majority of the servers that answered.
public sealed class NtpClockMeasurementProperties
| Name | Description |
|---|---|
| ClockOffset | Gets the estimated clock offset between the local clock and the servers: the average of the offsets of NtpClockMeasurement.SelectedServers, weighted by the inverse of their root distance. Add it to the local clock to get the time of the servers. |
| FailedServers | Gets the clients whose server gave no valid reply, with the reason. |
| Jitter | Gets the root mean square of the differences between the offsets of NtpClockMeasurement.SelectedServers and NtpClockMeasurement.ClockOffset. |
| MaximumClockOffset | Gets the upper bound of the clock offset. See NtpClockMeasurement.MinimumClockOffset. |
| MinimumClockOffset | Gets the lower bound of the clock offset: the true offset lies between NtpClockMeasurement.MinimumClockOffset and NtpClockMeasurement.MaximumClockOffset as long as the majority of the servers that answered tell the time correctly. |
| RejectedServers | Gets the servers whose time disagrees with the majority (the falsetickers of RFC 5905). Their offsets are ignored. |
| SelectedServers | Gets the servers that agree with the majority (the truechimers of RFC 5905), whose offsets make NtpClockMeasurement.ClockOffset. |
ClockOffset
NtpClockMeasurement.csGets the estimated clock offset between the local clock and the servers: the average of the offsets of NtpClockMeasurement.SelectedServers, weighted by the inverse of their root distance. Add it to the local clock to get the time of the servers.
public TimeSpan ClockOffset { get; }Property value
FailedServers
NtpClockMeasurement.csGets the clients whose server gave no valid reply, with the reason.
public IReadOnlyDictionary<NtpClient, Exception> FailedServers { get; }Property value
Jitter
NtpClockMeasurement.csGets the root mean square of the differences between the offsets of NtpClockMeasurement.SelectedServers and NtpClockMeasurement.ClockOffset.
public TimeSpan Jitter { get; }Property value
MaximumClockOffset
NtpClockMeasurement.csGets the upper bound of the clock offset. See NtpClockMeasurement.MinimumClockOffset.
public TimeSpan MaximumClockOffset { get; }Property value
MinimumClockOffset
NtpClockMeasurement.csGets the lower bound of the clock offset: the true offset lies between NtpClockMeasurement.MinimumClockOffset and NtpClockMeasurement.MaximumClockOffset as long as the majority of the servers that answered tell the time correctly.
public TimeSpan MinimumClockOffset { get; }Property value
RejectedServers
NtpClockMeasurement.csGets the servers whose time disagrees with the majority (the falsetickers of RFC 5905). Their offsets are ignored.
public IReadOnlyList<NtpServerMeasurement> RejectedServers { get; }Property value
SelectedServers
NtpClockMeasurement.csGets the servers that agree with the majority (the truechimers of RFC 5905), whose offsets make NtpClockMeasurement.ClockOffset.
public IReadOnlyList<NtpServerMeasurement> SelectedServers { get; }