Cockatrice/libcockatrice_network/libcockatrice/network/client
BruebachL b91e872f5f
[Network] Measure real server round-trip times (#7153)
* [Network] Measure real server round-trip times

Time each command container from send to response with QElapsedTimer,
aggregate samples in a fixed-size ring buffer (last/median/p95/max),
and emit aggregated pingStatsUpdated at most once per second so the
hot path stays free of signal traffic. Stats are cleared on
disconnect. Forward the signal through ConnectionController for UI
consumers. Unit-tested in latency_tracker_test.

Took 37 minutes

Took 4 minutes

# Commit time for manual adjustment:
# Took 8 minutes

* Move params to struct, more informative debug

Took 56 seconds

Took 53 seconds

Took 2 minutes

Took 33 seconds

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-08-23 00:03:52 +02:00
..
abstract [Network] Measure real server round-trip times (#7153) 2026-08-23 00:03:52 +02:00
local [CI] Remove Qt5 (#7071) 2026-08-08 22:04:50 +02:00
remote [Network] Measure real server round-trip times (#7153) 2026-08-23 00:03:52 +02:00
CMakeLists.txt Clean up link targets. (#6304) 2025-11-11 14:04:14 +01:00