summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
commit1c1fa25e6cb8b6b49523abf11c88bc4b326668cd (patch)
tree3c595b1c81bb2ffb3390631673af1b3ab30c2bcd /src/skel/glfw
parentMerge pull request #677 from majesticCoding/miami (diff)
parentupdate librw (diff)
downloadre3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.gz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.bz2
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.lz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.xz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.zst
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.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 9a4f2188..0d8361b8 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -213,7 +213,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