NtpPacketRoundTripTime Property |
Gets the round-trip time to the server.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic TimeSpan RoundTripTime { get; }Property Value
TimeSpan
Time the request spent traveling to the server plus the time the reply spent traveling back.
This is calculated from timestamps in the packet as
(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