diff options
author | blingu <36486731+blingu@users.noreply.github.com> | 2020-08-05 14:33:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 14:33:50 +0200 |
commit | c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880 (patch) | |
tree | 13a2aa75624db4fac2ab3cc9e7e91d0448414c9f /src/skel | |
parent | 7a7b3527932d4ef5ff7d1676f8af022ae28cbdf5 (diff) |
added FreeBSD support
Diffstat (limited to 'src/skel')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 4 |
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 |