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 --- Hi, thanks for your answers. In the end it was because the sys_clk_timer set to None in the BSP, now it is working. Thanks. --- Quote End --- 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!