realLatency property
The average network and API latency of the last 10 requests.
This time measures how long each request takes to get a response from Discord's API, regardless of holding or retries due to rate limiting. This is not an indicator of how long each call to execute takes to complete.
If no requests have been completed, this getter returns Duration.zero.
Implementation
Duration get realLatency => _realLatencies.isEmpty ? Duration.zero : (_realLatencies.reduce((a, b) => a + b) ~/ _realLatencies.length);