Use time.monotonic instead of time.time where appropriate (#31780)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-02-13 22:57:07 +01:00
1 parent fbbb29a6ec
commit 3018e8ff47
8 files changed
+21 -23

No files matched your search

@@ -285,7 +285,7 @@ class Doods(ImageProcessingEntity):
)
# Run detection
start = time.time()
start = time.monotonic()
response = self._doods.detect(
image, dconfig=self._dconfig, detector_name=self._detector_name
)
@@ -293,7 +293,7 @@ class Doods(ImageProcessingEntity):
"doods detect: %s response: %s duration: %s",
self._dconfig,
response,
time.time() - start,
time.monotonic() - start,
)
matches = {}