From c9c31f803eaebf69481d24ac9355cd1f8d3111d9 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Fri, 5 Jun 2020 17:50:00 -0400 Subject: util/time: de-duplicate `timespec_to_msec` --- include/util/time.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/util') 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 + /** * 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 -- cgit v1.2.3