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 ago --- Quote Start --- How did you change the sys_clk_timer value to make it work? In my BSP editor it has only the None value. I guess I have to change it in system.h. Which value must I give to it? Thanks! --- Quote End --- Does your Qsys system contain one or more "Interval Timer" peripherals? It sounds like it doesn't. The BSP editor will present you with a choice of all the timers in your system that are correctly connected to your processor. Changing it in system.h is not going to work.