summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-09-28 03:59:14 +0200
committerGreg V <greg@unrelenting.technology>2020-09-28 03:59:14 +0200
commit7d03a6fe291ff72edcf517dda1de8aee40941019 (patch)
tree23807f1b3817ed21364bbf1c6a0c3b7cdf9b6850 /src/skel
parentAdd non-amd64 architectures for bsd (diff)
downloadre3-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.cpp4
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