#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; }
获取clock ticks per second
原文:https://www.cnblogs.com/jingyg/p/10278606.html