diff options
author | Greg V <greg@unrelenting.technology> | 2020-09-28 03:59:14 +0200 |
---|---|---|
committer | Greg V <greg@unrelenting.technology> | 2020-09-28 03:59:14 +0200 |
commit | 7d03a6fe291ff72edcf517dda1de8aee40941019 (patch) | |
tree | 23807f1b3817ed21364bbf1c6a0c3b7cdf9b6850 /src/skel | |
parent | Add non-amd64 architectures for bsd (diff) | |
download | re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar.gz re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar.bz2 re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar.lz re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar.xz re3-7d03a6fe291ff72edcf517dda1de8aee40941019.tar.zst re3-7d03a6fe291ff72edcf517dda1de8aee40941019.zip |
Diffstat (limited to 'src/skel')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index e954e04b..02546ffc 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -235,8 +235,10 @@ double psTimer(void) { struct timespec start; -#ifdef __linux__ +#if defined(CLOCK_MONOTONIC_RAW) clock_gettime(CLOCK_MONOTONIC_RAW, &start); +#elif defined(CLOCK_MONOTONIC_FAST) + clock_gettime(CLOCK_MONOTONIC_FAST, &start); #else clock_gettime(CLOCK_MONOTONIC, &start); #endif |