summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-09-28 03:59:14 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2020-11-18 15:13:03 +0100
commit2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3 (patch)
tree46692dce2569afa1fdd454a260b7a721d8775728 /src/skel/glfw
parentAdd non-amd64 architectures for bsd (diff)
downloadre3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar.gz
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar.bz2
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar.lz
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar.xz
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.tar.zst
re3-2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3.zip
Diffstat (limited to '')
-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 1217fc70..fbd40ba2 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -249,8 +249,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