aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/pyhelper.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-02-06 13:31:34 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-02-06 13:31:34 -0500
commit20d0936fa256e0caa41a18a79556c8ade3f8347f (patch)
tree230424417d2f1b0c148d677ecf3d1003dfd943ac /klippy/pyhelper.h
parentc24b7a7ef96b6c9770fdf4c821f5719892732033 (diff)
downloadkutter-20d0936fa256e0caa41a18a79556c8ade3f8347f.tar.gz
kutter-20d0936fa256e0caa41a18a79556c8ade3f8347f.tar.xz
kutter-20d0936fa256e0caa41a18a79556c8ade3f8347f.zip
reactor: Use the system monotonic clock instead of the normal system clock
The normal system clock can have sudden jumps if the system clock is changed. Use the system monotonic clock to avoid these sudden changes in time. It appears the Raspbian OS (which is used by OctoPi) is setup to update the system clock upon network connectivity. This could cause sudden system clock changes which could lead to Klippy processing errors. Using the monotonic clock eliminates these issues. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/pyhelper.h')
-rw-r--r--klippy/pyhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/pyhelper.h b/klippy/pyhelper.h
index bca65fd2..1042214b 100644
--- a/klippy/pyhelper.h
+++ b/klippy/pyhelper.h
@@ -1,7 +1,7 @@
#ifndef PYHELPER_H
#define PYHELPER_H
-double get_time(void);
+double get_monotonic(void);
struct timespec fill_time(double time);
void set_python_logging_callback(void (*func)(const char *));
void errorf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));