I tried to use time() function to get current system time. I have included <time.h>, it can build success, but when run, it always failed. The sample code is like following:
long begin_time, end_time;
begin_time = time ( (long *) 0);
end_time = time ( (long *) 0);
But it always fail to run, with following log in UART:
core freq at 267262361 Hz
Progam has exited with code:0x0000000C
So, seems the time() function can’t be used on Hifive1 board, so how to get current system time? Thanks a lot.