def _currentTime(self):
    'This is a separate method so it can be mocked by tests.'
    return time.time()
This is a separate method so it can be mocked by tests.
def _currentTime(self):
    
    return time.time()