Forum Discussion
Altera_Forum
Honored Contributor
13 years agotimes() always returns 1 in NIOS II
Hi, I am trying to measure the process execution time using the following code... # include <stdlib.h># include "sys/alt_stdio.h"# include <sys/alt_alarm.h># include "sys/times.h"# inclu...
Altera_Forum
Honored Contributor
13 years agoYou want the performance counter timer, which has granularity in units of the clock you feed it.
http://www.altera.com/literature/an/an391.pdf