1 2 3 4 5 6 7 8 9 10
#include <time.h> #include <sys/times.h> int bar (void) { struct tms buf; clock_t ticks = times (&buf); return ticks == 0 && time (NULL) == 0; }