windows: Check for clock_gettime() function itself as well

CLOCK_THREAD_CPUTIME_ID seems to be defined sometimes even if clock_gettime() is
missing.
This commit is contained in:
Martin Willi
2014-06-04 15:53:05 +02:00
parent 3d50dd47ef
commit 89c3ff6d2c
+1 -1
View File
@@ -104,7 +104,7 @@ static const char* get_name(void *sym)
return "unknown";
}
#ifdef CLOCK_THREAD_CPUTIME_ID
#if defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_CLOCK_GETTIME)
/**
* Start a benchmark timer