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)
PyPi Project
Last updated 2 years ago