Simple Python context manager for timing blocks of code.