def __enter__(self): """ Start timing something. Note - the with statement will invoke this automatically. :return: an instance of this class """ self.start = time.process_time() return self