a Context Manager used to time the code.