2022年4月26日

获取 cpu 时钟周期数(cpu cycle)

摘要: 1、x86下获取cpu 时钟周期数 get_cpu_cycle:函数获取自cpu启动以来所记录的cpu时钟周期数。 1.1 实验代码 #include <stdio.h> #include <unistd.h> int main() { unsigned long long number = 100 阅读全文

posted @ 2022-04-26 19:28 红旗kernel 阅读(5270) 评论(0) 推荐(0)

导航