Which int type for max TIME STRUCT time elapsed?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Which int type for max TIME STRUCT time elapsed?

554 Views
jennwasson2003
Contributor I

Hi,

I would like to use below code for a timer.   Is diff_time.MILLISECONDS an int32_t variable like a saw for max_struct_ticks?  If so, why wouldn't it be uint32_t ?  Thanks

TIME_STRUCT   start_time, end_time, diff_time; ... _time_get(&start_time);
/* Send 100 messages. */

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

printf(“Time to send 100 messages: %ld sec %ld millisec\n”, diff_time.SECONDS, diff_time.MILLISECONDS);

0 Kudos
Reply
1 Reply

491 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Sorry I did not get your question.

Can you please tell me the part number that you are using?

Thanks

0 Kudos
Reply