Is there an equivalent C function in linux for reading the CPU counter and its frequency?
I am looking for something similair to QueryPerformanceCounter function that re
The HAVEGE library uses the CPU counter. Check out its source code here. The relevant file is src/hardtick.h.