Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Time function not working at sys/bios on M3 processor

$
0
0

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;
double
dif;

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 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>