Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

timely :: easy stopwatch interface in Python

Project Description
Python Timely

Stopwatch interface for Python. Currently supports two modes: timing execution (:class:`Stopwatch`), and pausing the completion of a block of code until a specified time has elapsed :class:`Blocker`.

Stopwatch usage


with Stopwatch() as s:
print s.duration() # time it took to execute do_a() and do_b()

print s.duration() # time it took to execute do_a(), do_b(), and do_c()

if s > 3: # comparators implicitly evaluate duration
print 'took longer than 3 seconds'

Blocker usage


with Blocker(3) as w:
print 'Happens immediately!'
time.sleep(1.5) # executes immediately
# ... we wait here until 3 seconds have passed

print '3 seconds have passed!'
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
timely-0.1.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source Jun 10, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting