summaryrefslogtreecommitdiff
path: root/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c')
-rw-r--r--3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c b/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c
new file mode 100644
index 000000000..ad460a1af
--- /dev/null
+++ b/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c
@@ -0,0 +1,8 @@
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+int main(int argc, char** argv)
+{
+ struct timespec tval;
+ return clock_gettime(CLOCK_MONOTONIC, &tval);
+}