diff options
author | Greg V <greg@unrelenting.technology> | 2020-09-28 03:59:14 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-18 15:13:03 +0100 |
commit | 2ce9e540da10d4d52ec8bf1defa9ccd45312e3b3 (patch) | |
tree | 46692dce2569afa1fdd454a260b7a721d8775728 /src | |
parent | Add non-amd64 architectures for bsd (diff) | |
download | re3-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 'src')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 4 |
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 |