source: trunk/config.tests/unix/clock-gettime/clock-gettime.cpp@ 342

Last change on this file since 342 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 349 bytes
Line 
1#include <unistd.h>
2#include <time.h>
3
4int main(int, char **)
5{
6#if defined(_POSIX_TIMERS) && (_POSIX_TIMERS > 0)
7 timespec ts;
8 clock_gettime(CLOCK_REALTIME, &ts);
9#else
10# error "Feature _POSIX_TIMERS not available"
11 // MIPSpro doesn't understand #error, so force a compiler error
12 force_compiler_error = true;
13#endif
14 return 0;
15}
16
Note: See TracBrowser for help on using the repository browser.