Make clock_gettime adapter work if used multiple time

This commit is contained in:
Sebastian Messmer 2016-02-26 12:37:37 +01:00
parent ab5eb920a5
commit 35ae3b9c24

View File

@ -9,7 +9,7 @@
#ifdef __MACH__
#include <sys/time.h>
#define CLOCK_REALTIME 0
int clock_gettime(int /*clk_id*/, struct timespec *result) {
inline int clock_gettime(int /*clk_id*/, struct timespec *result) {
struct timeval now;
int rv = gettimeofday(&now, nullptr);
if (rv) {