clockgettimetest.cpp 146 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 #include <time.h> int main(void) { struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp); clock_gettime(CLOCK_REALTIME, &tp); return 0; }