From a0a74c56cbfbbc3b5245673a4f6a3a8f491cd99b Mon Sep 17 00:00:00 2001 From: Bhavish Date: Fri, 2 Oct 2020 12:44:43 +0530 Subject: [PATCH] Replaced time.clock() with time.process_time() --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b0590ad9..b6b40b60 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.process_time() + while self.queue and time.process_time() - start < 1.0 / TICKS_PER_SEC: self._dequeue() def process_entire_queue(self):