Which int type for max TIME STRUCT time elapsed?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Which int type for max TIME STRUCT time elapsed?

770 次查看
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 项奖励
回复
1 回复

707 次查看
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 项奖励
回复