Add the functionality to write to a file like object to Timer() context manager.