aboutsummaryrefslogtreecommitdiff
path: root/include/util/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/time.h')
-rw-r--r--include/util/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/util/time.h b/include/util/time.h
index a24656a9..d4b5cca7 100644
--- a/include/util/time.h
+++ b/include/util/time.h
@@ -1,9 +1,16 @@
#ifndef UTIL_TIME_H
#define UTIL_TIME_H
+#include <time.h>
+
/**
* Get the current time, in milliseconds.
*/
uint32_t get_current_time_msec(void);
+/**
+ * Convert a timespec to milliseconds.
+ */
+int64_t timespec_to_msec(const struct timespec *a);
+
#endif