1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <machine/syscall.h> #include <unistd.h> #include <time.h> /* Get configurable system variables. */ long _sysconf(int name) { switch (name) { case _SC_CLK_TCK: return CLOCKS_PER_SEC; } return -1; }