Measuring the clocks

Is there any way to measure the number of clocks taken by a part of my code.

I can measure the time taken by the part of my code and divide it sys clk. But I dont want to do it,b'cos using a timer itself consume some clocks in the form of ISR, if it overflows.

Any suggestion pls

Parents Reply Children
No data
More questions in this forum