View Single Post
Old 17 November 2011, 22:08   #19
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,751
The method I use is to simply kill the system, then setup a vertical blank interrupt handler that counts frames. The main code then executes the test code a million times (for PAL). On a 50 mhz CPU this will give you the time in cycles (don't forget the loop overhead). Works for single instructions.

For different clock speeds and refresh rates just calculate a different number of times the test code has to be executed. Example: PAL+25 mhz CPU=500000 times.
Thorham is offline  
 
Page generated in 0.05187 seconds with 11 queries