diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-09 16:37:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-09 16:37:58 +0000 |
commit | f70053f2aaa8b8d46690c94530bb2fb5f908347c (patch) | |
tree | 1d3ca00edea5b638ab5fdfe189c536e0d08854af /designate/worker/processing.py | |
parent | f194b33bd3a8b9e6255f6dad74b1d09b0d74ff13 (diff) | |
parent | 437d2d96393b616c306a7886ce13d9220ca95207 (diff) | |
download | designate-f70053f2aaa8b8d46690c94530bb2fb5f908347c.tar.gz |
Merge "Use monotonic time to protect from system time jumps"
Diffstat (limited to 'designate/worker/processing.py')
-rw-r--r-- | designate/worker/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/designate/worker/processing.py b/designate/worker/processing.py index 59f8fcbe..cf280033 100644 --- a/designate/worker/processing.py +++ b/designate/worker/processing.py @@ -70,9 +70,9 @@ class Executor(object): if callable(tasks): tasks = [tasks] - start_time = time.time() + start_time = time.monotonic() results = [r for r in self._executor.map(self.do, tasks)] - elapsed_time = time.time() - start_time + elapsed_time = time.monotonic() - start_time LOG.debug( 'Finished Task(s): %(tasks)s in %(time)fs', |