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...
ZVere
New Contributor
4 years agoHello,
I'm aware the time is measured in clocks.
After converting clocks to usec, the measured time is ~2usec.
But the delay is exactly 1usec ( usleep(1) )
Is there an alternative for measuring the clock cycles ?
Thank you,
Zvika