Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

clock-monotonic.cpp

#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;
}


Generated by  Doxygen 1.6.0   Back to index