I am using a T2080 with a 1.8Ghz clock and I am trying to calculate the time to execute a while loop. I have the assembly instructions for the while loop and calculated based on the timing execution table in the E6500 reference manual that each loop will take 29 cycles to complete. The loop is a polling a loop that should be exited after 100ms (decrementer interrupt) so my formula to calculate my timeout variable would be:
((1.8Ghz/ 1000) * 100ms) / 29 cycles = ~6206896 iterations through my while loop.
This value is way to high and I have been printing my count variable in the loop and getting approximately 10300 iterations through my while loop. If someone could help guide me along the correct path that would be much appreciated. Thank you.