1 2 3 4 5 6 7 8 9 10 11
/* ISC license. */ #include <sys/types.h> #include <time.h> int main (void) { struct timespec ts ; if (clock_gettime(CLOCK_REALTIME, &ts) < 0) return 111 ; return 0 ; }