Forum Discussion
Altera_Forum
Honored Contributor
15 years agoConfirmation about method of calulate execution time
Hi I try to check the execution time of my algorithme. I use the high res_timer. I find on the tutorial how can calculate it, at least with this instruction: time1= alt_timestamp(); K=1; ...
Altera_Forum
Honored Contributor
14 years agoWhen measuring instruction performance a simulation is probably the most appropriate way to determine the time. The cycle counts for the Nios II processor are documented in the hardware handbook so if that's all you were looking to do then I would just look them up.
If you plan on measuring critical sections of code and want more timer resolution then I would take a look at the performance counter component. It'll measure a few criticial sections with clock cycle resolution.