https://github.com/wilfredinni/how-long
Simple Decorator to measure a function execution time.
https://github.com/wilfredinni/how-long
Last synced: 5 days ago
JSON representation
Simple Decorator to measure a function execution time.
- Host: GitHub
- URL: https://github.com/wilfredinni/how-long
- Owner: wilfredinni
- License: mit
- Created: 2019-05-03T19:13:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T16:15:04.000Z (almost 5 years ago)
- Last Synced: 2024-11-28T01:42:15.424Z (11 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
how_long
========Simple Decorator to measure a function execution time.
Example
_______.. code-block:: python
from how_long import timer
@timer
def some_function():
return [x for x in range(10_000_000)]