latency property
The average time taken by the last 10 requests to get a response.
This time includes the time requests are held or retried due to rate limits. It is an indicator of how long the Future returned by execute is likely to take to complete.
If no requests have been completed, this getter returns Duration.zero.
To get the network latency for this HttpHandler, see realLatency.
Implementation
Duration get latency => _latencies.isEmpty ? Duration.zero : (_latencies.reduce((a, b) => a + b) ~/ _latencies.length);