/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerState.h
Note that replication of CompressedPing is controlled by bShouldUpdateReplicatedPing, and if disabled then this will return 0 or a stale value on clients for player states that aren't related to local players
float GetPingInMilliseconds() const