Last updated 10 months ago
In Python, we can use tcp-latency module to measure Latency using TCP.
tcp-latency
>>> from tcp_latency import measure_latency >>> measure_latency(host='google.com') [103.44290733337402]
pip install tcp-latency
Reference(s)