GetClientAvgLatency Function

Returns the client's average packet latency in seconds.

float GetClientAvgLatency(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.