summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authorblingu <36486731+blingu@users.noreply.github.com>2020-08-05 14:33:50 +0200
committerGitHub <noreply@github.com>2020-08-05 14:33:50 +0200
commitc4f9bfdc441fb0a0d6bfde208cd1f8192bacc880 (patch)
tree13a2aa75624db4fac2ab3cc9e7e91d0448414c9f /src/skel/glfw
parentadded FreeBSD support (diff)
downloadre3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar.gz
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar.bz2
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar.lz
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar.xz
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.tar.zst
re3-c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880.zip
Diffstat (limited to 'src/skel/glfw')
-rw-r--r--src/skel/glfw/glfw.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index a1170c61..643a9e64 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -209,7 +209,11 @@ double
psTimer(void)
{
struct timespec start;
+#ifdef __linux__
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
+#elif __FreeBSD__
+ clock_gettime(CLOCK_MONOTONIC, &start);
+#endif
return start.tv_sec * 1000.0 + start.tv_nsec/1000000.0;
}
#endif