获取clock ticks per second
#include <sys/syscall.h> #include <stdio.h> #include <unistd.h> int main() { printf("clock ticks per second = %ld\n", sysconf(_SC_CLK_TCK)); return 0; }
#include <sys/syscall.h> #include <stdio.h> #include <unistd.h> int main() { printf("clock ticks per second = %ld\n", sysconf(_SC_CLK_TCK)); return 0; }