kaeven

_time_get - Problem (MCF52259 + MQX 3.5)

Discussion created by kaeven on Mar 11, 2010
Latest reply on May 18, 2010 by David Smith

Hello,

 

I have a problem with the functions _time_get(), _time_get_elapsed(), _time_diff(). Sometimes, every 5 to 10 seconds, I get a wrong timestamp from these functions. 

 

 

_time_get_elapsed(&start_time);

...

_time_get_elapsed(&end_time);
_time_diff(&start_time, &end_time, &diff_time);

printf("start_time.SECONDS = %u, start_time.MILLISECONDS = %u\n", start_time.SECONDS, start_time.MILLISECONDS );
printf("end_time.SECONDS   = %u, end_time.MILLISECONDS   = %u\n", end_time.SECONDS,   end_time.MILLISECONDS );
printf("diff_time.SECONDS  = %u, diff_time.MILLISECONDS  = %u\n", diff_time.SECONDS,  diff_time.MILLISECONDS );

 

 

 

Outcomes