I want to measure how many clock cycles a function takes to execute. That way I would now how many MHz a program actually needs.
I tried using avr-objdump and the document "AVR 8-bit Instruction Set" to count clocks for each instruction.
Is there any better ways? Does it exists any utilty that count instructions/clocks for a program or function?