From b0d6b70b1633c615a9102500a46b8079d1619e0e Mon Sep 17 00:00:00 2001 From: marco97pa Date: Mon, 14 Dec 2020 15:37:46 +0100 Subject: [PATCH] [Fix] time.clock() deprecated in Python 3.8 Replaced all calls to time.clock() with time.perf_counter(). time.clock() has been removed from the time module in Python 3.8. --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b0590ad9..bfdcd32c 100644 --- a/main.py +++ b/main.py @@ -419,8 +419,8 @@ def process_queue(self): add_block() or remove_block() was called with immediate=False """ - start = time.clock() - while self.queue and time.clock() - start < 1.0 / TICKS_PER_SEC: + start = time.perf_counter() + while self.queue and time.perf_counter() - start < 1.0 / TICKS_PER_SEC: self._dequeue() def process_entire_queue(self):