GetClientLatency Function

Returns the client's current latency (RTT), more accurate than GetAvgLatency but jittering.

float GetClientLatency(int client, NetFlow flow)

Parameters

int client

Player's index.

NetFlow flow

Traffic flowing direction.

Return Value

Latency, or -1 if network info is not available.

Errors

Invalid client index, client not connected, or fake client.