From f1747b51182cbe4d77c991492b55fd2df12b4c18 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 1 Oct 2021 19:30:48 -0400 Subject: klippy: Add Python2 module wrappers and use Python3 module naming Add wrappers for some common Python modules so that the code can run on both Python2 and Python3. Signed-off-by: Kevin O'Connor --- klippy/extras/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/statistics.py') diff --git a/klippy/extras/statistics.py b/klippy/extras/statistics.py index 641396a3..d9c0a367 100644 --- a/klippy/extras/statistics.py +++ b/klippy/extras/statistics.py @@ -23,7 +23,7 @@ class PrinterSysStats: self.mem_file = None def stats(self, eventtime): # Get core usage stats - ptime = time.clock() + ptime = time.process_time() pdiff = ptime - self.last_process_time self.last_process_time = ptime if pdiff > 0.: -- cgit v1.2.3-70-g09d2