ports/benchmarks/libcpucycles/files
Robert Clausecker 05515f1759 benchmarks/libcpucycles: report actual CPU frequency if supported
This uses sched_getcpu(2) to find the CPU we are scheduled on and then
cpufreq(4) to find the frequency of that CPU.  The caller is responsible
for pinning the thread to one CPU and/or disabling frequency scaling if
a consistent result is required.
2024-11-25 11:22:04 +01:00
..
patch-cpucycles_wrapper.c