aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/save_variables.py2
-rw-r--r--klippy/extras/statistics.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/save_variables.py b/klippy/extras/save_variables.py
index f15dbc11..3765a1ae 100644
--- a/klippy/extras/save_variables.py
+++ b/klippy/extras/save_variables.py
@@ -4,7 +4,7 @@
# Copyright (C) 2016-2020 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
-import os, logging, ast, ConfigParser as configparser
+import os, logging, ast, configparser
class SaveVariables:
def __init__(self, config):
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.: