summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-08-08 13:58:42 +0200
committerGitHub <noreply@github.com>2020-08-08 13:58:42 +0200
commit8428b99c0d3475f36661fbc4d466d464497c1674 (patch)
tree755d20dba2c3e5e74698d2effb9f3bf59443b04f /src/skel
parentMerge pull request #680 from ShFil119/actions (diff)
parentfixed line formatting (diff)
downloadre3-8428b99c0d3475f36661fbc4d466d464497c1674.tar
re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.gz
re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.bz2
re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.lz
re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.xz
re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.zst
re3-8428b99c0d3475f36661fbc4d466d464497c1674.zip
Diffstat (limited to 'src/skel')
-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..ed442348 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);
+#else
+ clock_gettime(CLOCK_MONOTONIC, &start);
+#endif
return start.tv_sec * 1000.0 + start.tv_nsec/1000000.0;
}
#endif