Tool for timing the execution of Python functions
Project description
Tool for timing the execution of Python functions.
Installation
Install with pip:
pip install clockit
Usage
Run as follows:
$ python >>> from clockit import clockit >>> def f(x, y=1): ... return x, y ... >>> clocked = clockit(f, 1, y=2) >>> clocked.result (1, 2) >>> clocked.time 0.0005593200330622494
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clockit-0.2.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for clockit-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5848a025f7675d8bfe21f7bd193ddb7652160300ff88dcf831c51e726a4a85a |
|
MD5 | ad5a8823421284bcec8c9e040511564e |
|
BLAKE2b-256 | ca5e7724e3d83b697fab6230321f8e4db29248064c70903b8738541d1c442ba3 |