Calculate Ping using LLAPI

Hi!

One of basic metrics for multiplayer is ping.
How can I get ping if I use only LLAPI ?

1 Like

https://docs.unity3d.com/ScriptReference/Networking.NetworkTransport.GetCurrentRTT.html For a value that the library calculates.

https://docs.unity3d.com/ScriptReference/Networking.NetworkTransport.GetNetworkTimestamp.html And
https://docs.unity3d.com/ScriptReference/Networking.NetworkTransport.GetRemoteDelayTimeMS.html
To calculate your own.

2 Likes