blob: df9996368d057a5ed8af4a96adcac174910de2e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <unistd.h>
#include <time.h>
int main(int, char **)
{
#if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK-0 >= 0)
timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
#else
# error "Feature _POSIX_MONOTONIC_CLOCK not available"
// MIPSpro doesn't understand #error, so force a compiler error
force_compiler_error = true;
#endif
return 0;
}
|