summaryrefslogtreecommitdiffstats
path: root/include/monotonic.h
diff options
context:
space:
mode:
authorKarel Zak2014-11-19 11:54:47 +0100
committerKarel Zak2014-11-19 11:54:47 +0100
commitcd2876d252215fb3fbe46f787cb37cd4fbd64e53 (patch)
tree8b12443080179b8e99a010b88b0446c061711e66 /include/monotonic.h
parentbuild-sys: use CLOCKGETTIME_LIBS (diff)
downloadkernel-qcow2-util-linux-cd2876d252215fb3fbe46f787cb37cd4fbd64e53.tar.gz
kernel-qcow2-util-linux-cd2876d252215fb3fbe46f787cb37cd4fbd64e53.tar.xz
kernel-qcow2-util-linux-cd2876d252215fb3fbe46f787cb37cd4fbd64e53.zip
build-sys: move all around clock_gettime() to monotonic.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/monotonic.h')
-rw-r--r--include/monotonic.h11
1 files changed, 11 insertions, 0 deletions
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 */