From cd2876d252215fb3fbe46f787cb37cd4fbd64e53 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 19 Nov 2014 11:54:47 +0100 Subject: build-sys: move all around clock_gettime() to monotonic.c Signed-off-by: Karel Zak --- include/monotonic.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/monotonic.h (limited to 'include/monotonic.h') diff --git a/include/monotonic.h b/include/monotonic.h new file mode 100644 index 000000000..f3b03d3d0 --- /dev/null +++ b/include/monotonic.h @@ -0,0 +1,11 @@ +#ifndef UTIL_LINUX_BOOTTIME_H +#define UTIL_LINUX_BOOTTIME_H + +/* + * Uses clock_gettime() that requires $CLOCKGETTIME_LIBS + */ +extern int get_boot_time(struct timeval *boot_time); + +extern int gettime_monotonic(struct timeval *tv); + +#endif /* UTIL_LINUX_BOOTTIME_H */ -- cgit v1.2.3-55-g7522