Hi guys,
I'm experiencing an issue that the time function is now working as I expect on M3 processor.
Souce code is C and all dependencies to compile my code are xdctools 3.22, ipc 1.23 and bios 6.32.
Source code is simple like below.
time_t start,end;
dif;
double
time (&start);
//do something...
time (&end);
dif = difftime (end,start);
printf ("%.2lf %d %d seconds\n", dif, (int)end, (int)start );
And the result I got is like below.
0.0 -117901064 -117901064
0.0 -117901064 -117901064
0.0 -117901064 -117901064
I'm pretty sure the time between start and end is enough (about a second) but I don't understand why this code is not working while exactly same codes are working on on linux compiled by GNU gcc.
Do you guys have any idea?
Thanks,
Jaeyeon