WoLpH/python-statsd — pull request #29 by bluepeppers (2013-12-16 11:26:20+00:00)
Title: Add a contextmanager to Timer

This allows for timing of arbitrary blocks of code:

>>> with timer.time("foobar"):
... thing_to_be_timed()
... etc++
...