Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
added FreeBSD support
  • Loading branch information
nrb547 committed Aug 5, 2020
1 parent 7a7b352 commit c4f9bfdc441fb0a0d6bfde208cd1f8192bacc880
Showing with 4 additions and 0 deletions.
  1. +4 −0 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

0 comments on commit c4f9bfd

Please sign in to comment.