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