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:
@@ -104,7 +104,7 @@ static const char* get_name(void *sym)
|
|||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CLOCK_THREAD_CPUTIME_ID
|
#if defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_CLOCK_GETTIME)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start a benchmark timer
|
* Start a benchmark timer
|
||||||
|
|||||||
Reference in New Issue
Block a user