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

A very simple decorator that tracks running time

Project Description
Code time tracker
=================

simply tracks ellapsed time of decorated code and print it when script is finished.

In order to use it, just do:

from code_time_tracker import code_time_tracked

and later decorate your code like this:

@code_time_tracked
def my_func():
do_stuff()

And with that, if you run a script with such decoration you'll get something like this output:
]$ python sample.py
... (script output if any)
<Code time tracker __main__.my_func: 0:00:00.001063 timedelta, 2 calls>
Release History

Release History

This version
History Node

0.1

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
code_time_tracker-0.1.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Aug 4, 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