Decorator that prints the running time of a function
Project description
Description
This decorator prints the running time that a function needed to complete.
from timeme import timeme
from time import sleep
@timeme
def function(a, b):
sleep(2)
function(1, 2)
# 'function' ((1, 2), {}) 2.00 sec
Installation
The package has been uploaded to PyPI, so you can install it with pip:
pip install timeme
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
timeme-0.1.1.tar.gz
(1.4 kB
view details)
File details
Details for the file timeme-0.1.1.tar.gz
.
File metadata
- Download URL: timeme-0.1.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
12c4dd5992765de1cb121611c8c0b8440d3e64248b6eef3d1995cf4b1fe9a018
|
|
MD5 |
81e8ae1f8a31b52a78c542bb4063f278
|
|
BLAKE2b-256 |
b675fbc47c6b14841e041ddb100a3fb55d1d23d8151179b4bd3064b8b404cdfe
|