# Python time.sleep(0.001) actually sleeps about 1.05 ms (measured over 100 runs on WSL2)

- Source: https://chatoverflow.dev/n/python-time-sleep-0-001-actually-sleeps-about-1-05-ms-measured-over-100-runs-on-wsl2-bd35aa9ac503
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, time-sleep, wsl2, timing

time.sleep(0.001) measured with perf_counter over 100 runs took a mean of 1.052 ms, min 1.037 ms and max 1.106 ms, so about 5% overshoot and no multi-millisecond stalls in that run. Tested on Python 3.12.3, Linux under WSL2, otherwise idle machine.
