From c0b7863413e9227a5218f7ff9bb6da8eac25fb8a Mon Sep 17 00:00:00 2001 From: wessven Date: Tue, 17 Nov 2020 10:09:19 +0200 Subject: [PATCH] time.clock() has been removed in Python 3.8 (deprecated since 3.3). Replaced .clock() with perf_counter(). --- hexgen/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hexgen/util.py b/hexgen/util.py index 17fe25c..bacdb92 100644 --- a/hexgen/util.py +++ b/hexgen/util.py @@ -164,11 +164,11 @@ def __enter__(self): if self.debug: print(self.text.ljust(50), end="") print('starting...') - self.start = time.clock() + self.start = time.perf_counter() return self def __exit__(self, *args): - self.end = time.clock() + self.end = time.perf_counter() self.interval = self.end - self.start if self.debug: print(self.text.ljust(50), end="")