summaryrefslogtreecommitdiffstats
path: root/libblkid/include/monotonic.h
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid/include/monotonic.h')
-rw-r--r--libblkid/include/monotonic.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libblkid/include/monotonic.h b/libblkid/include/monotonic.h
new file mode 100644
index 000000000..f3b03d3d0
--- /dev/null
+++ b/libblkid/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 */