PDA

View Full Version : timing calculations



scorpion
- 26th November 2004, 23:19
what is the best way for me to calculate how long a certain part of my program will take to run.
do i need to compile it from pbp to asm then count the instructions and * it by the clock freq?

mister_e
- 28th November 2004, 22:58
easier solution... place HIGH LED on the begining and LOW LED and the end of your code... do a loop and measure with a scope or frequency meter. this will be close to what you need.


regards`