| Last change
 on this file since 50 was             2, checked in by Dmitry A. Kuminov, 16 years ago | 
        
          | 
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
 | 
        
          | File size:
            381 bytes | 
      
      
| Line |  | 
|---|
| 1 | #include <unistd.h> | 
|---|
| 2 | #include <time.h> | 
|---|
| 3 |  | 
|---|
| 4 | int main(int, char **) | 
|---|
| 5 | { | 
|---|
| 6 | #if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK-0 >= 0) | 
|---|
| 7 | timespec ts; | 
|---|
| 8 | clock_gettime(CLOCK_MONOTONIC, &ts); | 
|---|
| 9 | #else | 
|---|
| 10 | #  error "Feature _POSIX_MONOTONIC_CLOCK 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.