Forum Discussion
ZVere
New Contributor
4 years agoMeasure time in NIOS application
Hello,
I used the following code to measure 1usec in baremetal NIOS application.
PERF_RESET (NIOS_PERFORMANCE_COUNTER_BASE);
PERF_START_MEASURING (NIOS_PERFORMANCE_COUNTER_BASE);
PERF_BEGIN (N...
EricMunYew_C_Intel
Frequent Contributor
4 years agoYour code is measuring the number of clock cycles to finish execute usleep(1), not measuring the delay.
ZVere
New Contributor
4 years agoHello,
Thank you for your reply.
How can I measure exactly the time a specified code is running ? (in clocks)
For example: If the code is usleep (1), I expect that NofClocks * Frequency ~ 1usec
Best regards,
Zvika