This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • No I think you have mis understood. I 'll clear you.

    if I use the timer, it will include the iterations in the loops. I dont want that.
    Say, there is a function which contains some code.On compilation,say, the function contains some 25 different opcodes. I want to know the sum of all the 25 opcodes.

Reply
  • No I think you have mis understood. I 'll clear you.

    if I use the timer, it will include the iterations in the loops. I dont want that.
    Say, there is a function which contains some code.On compilation,say, the function contains some 25 different opcodes. I want to know the sum of all the 25 opcodes.

Children