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

猜你喜欢

转载自www.cnblogs.com/jingyg/p/10278606.html
今日推荐