mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-01 19:05:56 +01:00
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 <kevin@koconnor.net>
This commit is contained in:
@@ -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.:
|
||||
|
||||
Reference in New Issue
Block a user