diff options
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c | 8 |
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); +} |