A simple decorator to measure a function excecution time.
Project description
Simple Decorator to measure a function execution time.
Example
from how_long import timer
@timer
def some_function():
return [x for x in range(10_000_000)]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
how-long-0.1.2.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file how-long-0.1.2.tar.gz
.
File metadata
- Download URL: how-long-0.1.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.9.3-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed0d922378936f1e373568aa10df21910b61c877601f2b9e5d8393e1197e06f |
|
MD5 | aa1f65745816e04cefa92987e2a1900b |
|
BLAKE2b-256 | f1bc7b3ac4a6499a333045c8adf6207983f00cb36b9d787e65cceddb5fe093a0 |
File details
Details for the file how_long-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: how_long-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.9.3-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ad25f5074ddc5a67a216fa7e4bc236b8971bdb387dea54f4cd50f42dc09f20 |
|
MD5 | 34c67c78f81b62ff3d24d99f3a35ca4f |
|
BLAKE2b-256 | e104387d288797aea1645a6c02ec8f09fb3bb3597d6c2a872c4272a8714a3bdb |