From ac0e2cce53c078235331f00dc79b65d333c90e76 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 30 Aug 2014 09:18:23 +0200 Subject: use our own clock_gettime on win32 --- facetracknoir/timer.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'facetracknoir') diff --git a/facetracknoir/timer.hpp b/facetracknoir/timer.hpp index e3fa38de..24d62e37 100644 --- a/facetracknoir/timer.hpp +++ b/facetracknoir/timer.hpp @@ -2,8 +2,7 @@ #include #if defined (_WIN32) # include -# define CLOCK_MONOTONIC 0 -static inline void clock_gettime(int, struct timespec* ts) +static inline void opentrack_clock_gettime(int, struct timespec* ts) { static LARGE_INTEGER freq; @@ -20,7 +19,7 @@ static inline void clock_gettime(int, struct timespec* ts) ts->tv_sec = d.QuadPart / 1000000000L; ts->tv_nsec = d.QuadPart % 1000000000L; } - +# define clock_gettime opentrack_clock_gettime #else # if defined(__MACH__) # define CLOCK_MONOTONIC 0 -- cgit v1.2.3