[bug 1050766] Measure and record time it takes tasks to execute.

Easier than I thought by using the context manager that comes with pystatsd.

r?
Nice!