Which int type for max TIME STRUCT time elapsed?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Which int type for max TIME STRUCT time elapsed?

767件の閲覧回数
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 返信

704件の閲覧回数
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 件の賞賛
返信