Hello,
Could someone point me to a code to calculate the CPU cycles when running a program or a part of it?
I found this code for x86 on this link. I need something similar for ARM.
I am using ARM Cortex-A15 and Cortex-A7.
Best regards.
There is a cycle count register (PMCCNTR) integrated into these processors that you can use:https://developer.arm.com/docs/ddi0438/i/performance-monitor-unit/pmu-register-summary