> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/python/measure-latency-using-tcp.md).

# Measure Latency Using TCP

In Python, we can use `tcp-latency` module to measure Latency using TCP.

## Example

```python
>>> from tcp_latency import measure_latency
>>> measure_latency(host='google.com')
[103.44290733337402]
```

## Installation

```bash
pip install tcp-latency
```

**Reference(s)**

* [PyPi Project](https://pypi.org/project/tcp-latency/)
