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 agoSorry, you'll need to debug that yourself. For example, try single stepping through your program to see where the problem is. If nothing else, you ought to be able to examine the "t_total" variable and see it become non-zero value.