Do you mean frequency, or cycles? Cycles is relatively straightforward, you can use the PMU.
View all questions in Arm Development Studio forum