The simplest way to time a block of code.
Project description
ez-timer
The easiest way to time a function call in Python.
Installation
ez-timer can be installed from pypi:
pip install ez-timer
Usage
Using ez-timer is simple:
from ez_timer import ez_timer
with ez_timer() as timer:
# run expensive computation
time.sleep(1)
print(timer.result)
# > 1.0001
That's all. That is the API.
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
ez-timer-0.0.1.tar.gz
(2.3 kB
view hashes)