获取clock ticks per second

#include <sys/syscall.h>
#include <stdio.h>
#include <unistd.h>

int main()
{
        printf("clock ticks per second = %ld
", sysconf(_SC_CLK_TCK));
        return 0;
}
原文地址:https://www.cnblogs.com/jingyg/p/10278606.html