This version of Unity is unsupported.
Removed in version 2018.4.36

Network.GetLastPing

Obsolete The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.

Declaration

public static int GetLastPing(NetworkPlayer player);

Description

The last ping time to the given player in milliseconds.

If the player can't be found -1 will be returned. Pings are automatically sent out every couple of seconds.