summaryrefslogtreecommitdiff
path: root/core/host/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/host/timer.c')
-rw-r--r--core/host/timer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/host/timer.c b/core/host/timer.c
index 124f17c14f..1c1fe01457 100644
--- a/core/host/timer.c
+++ b/core/host/timer.c
@@ -67,6 +67,11 @@ timestamp_t get_time(void)
return ret;
}
+uint32_t __hw_clock_source_read(void)
+{
+ return get_time().le.lo;
+}
+
void force_time(timestamp_t ts)
{
timestamp_t now = _get_time();