From fd74850c7c86fb9fd2d69a98f4928d9ec89da268 Mon Sep 17 00:00:00 2001 From: NeeleshVashist Date: Mon, 25 May 2020 17:52:54 +0530 Subject: [PATCH] Replace 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):