获取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;
}

 

posted @ 2019-01-16 18:27  Kjing  阅读(493)  评论(0编辑  收藏  举报