
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
timerun
Advanced tools
TimeRun - Python library for elapsed time measurement.
TimeRun is a simple, yet elegant elapsed time measurement library for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.
The only prerequisite to use TimeRun is running Python 3.9+.
Install TimeRun from Python Package Index:
pip install timerun
Install TimeRun from Source Code:
pip install git+https://github.com/HH-MWB/timerun.git
>>> import time
>>> from timerun import Timer
>>> with Timer() as timer:
... time.sleep(0.1) # your code here
>>> print(timer.duration)
0:00:00.100000000
>>> import time
>>> from timerun import Timer
>>> timer = Timer()
>>> @timer
... def func():
... time.sleep(0.1) # your code here
>>> func()
>>> print(timer.duration)
0:00:00.100000000
>>> import asyncio
>>> from timerun import Timer
>>> timer = Timer()
>>> @timer
... async def async_func():
... await asyncio.sleep(0.1) # your code here
>>> asyncio.run(async_func())
>>> print(timer.duration)
0:00:00.100000000
>>> import asyncio
>>> from timerun import Timer
>>> async def async_code():
... async with Timer() as timer:
... await asyncio.sleep(0.1) # your code here
... print(timer.duration)
>>> asyncio.run(async_code())
0:00:00.100000000
>>> import time
>>> from timerun import Timer
>>> timer = Timer()
>>> with timer:
... time.sleep(0.1) # your code here
>>> with timer:
... time.sleep(0.1) # your code here
>>> print(timer.duration) # Last duration
0:00:00.100000000
>>> print(timer.durations) # All durations
(ElapsedTime(nanoseconds=100000000), ElapsedTime(nanoseconds=100000000))
>>> from timerun import Timer
>>> # Exclude sleep time from measurements
>>> timer = Timer(count_sleep=False)
>>> # Limit storage to last 10 measurements
>>> timer = Timer(max_len=10)
We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
TimeRun is a Python library for elapsed time measurement.
We found that timerun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.