Click or drag to resize

NtpPacketCorrectionOffset Property

Gets the offset that should be added to local time to synchronize it with server time.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public TimeSpan CorrectionOffset { get; }

Property Value

TimeSpan
Time difference between server and client. It should be added to local time to get server time. It is calculated from timestamps in the packet as 0.5 * ((t1 - t0) - (t3 - t2)) where t0 is OriginTimestamp, t1 is ReceiveTimestamp, t2 is TransmitTimestamp, and t3 is DestinationTimestamp. This property throws an exception in request packets.
See Also