aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/core/timer.h')
-rw-r--r--include/osmocom/core/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h
index 7efe1cf0..cf47258c 100644
--- a/include/osmocom/core/timer.h
+++ b/include/osmocom/core/timer.h
@@ -29,6 +29,7 @@
#pragma once
#include <sys/time.h>
+#include <time.h>
#include <stdbool.h>
#include <osmocom/core/linuxlist.h>
@@ -95,4 +96,10 @@ extern struct timeval osmo_gettimeofday_override_time;
void osmo_gettimeofday_override_add(time_t secs, suseconds_t usecs);
void osmo_gettimeofday_override_accel_factor(unsigned int factor);
+int osmo_clock_gettime(clockid_t clk_id, struct timespec *tp);
+void osmo_clock_override_enable(clockid_t clk_id, bool enable);
+void osmo_clock_override_add(clockid_t clk_id, time_t secs, suseconds_t usecs);
+void osmo_clock_override_accel_factor(clockid_t clk_id, unsigned int factor);
+struct timespec *osmo_clock_gettimespec(clockid_t clk_id);
+
/*! @} */