Advanced stopwatch with lap tracking for Python developers.
pip install chronolapfrom chronolap import ChronolapTimer
timer = ChronolapTimer()
timer.start()
# your code
timer.lap("First section")
timer.stop()
for lap in timer.laps:
print(lap)| Feature | .NET Stopwatch |
Python (built-in) | Chronolap (This Project) |
|---|---|---|---|
| Start / Stop | ✅ Start(), Stop() |
❌ (requires manual handling) | ✅ start(), stop() |
| Restart | ✅ Restart() |
❌ | ✅ restart() |
| Elapsed Time | ✅ Elapsed, ElapsedMs |
✅ perf_counter() difference |
✅ elapsed, elapsed_ms |
| Lap Support | ❌ | ❌ | ✅ lap(), laps |
| Sync Measurement | ❌ | ❌ | ✅ measure(func) |
| Async Measurement | ❌ | ❌ | ✅ async_measure(async_func) |
| High-resolution Timer | ✅ Hardware-based | ✅ Uses time.perf_counter() |
📌 The built-in
Stopwatchin .NET has no direct equivalent in Python. Chronolap fills this gap with a fully featured stopwatch, lap tracking, and performance measurement tool.
If you find this project useful, consider supporting me:
MIT © Ertugrul Kara