How to get the system tick count in MQX 5?

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

How to get the system tick count in MQX 5?

ソリューションへジャンプ
2,238件の閲覧回数
WilliamLiSH
Contributor II

Hi,

I would like to add the elapsed time after power on in the debug message to specify the time sequence of code running and I prefer to use the system tick. However, I did not find the function interface to get current system tick.

Could you please help specify which interface should be used? Or is there any alternative solution for this purpose?

Hope to get your reply soon.

タグ(1)
0 件の賞賛
返信
1 解決策
2,187件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @WilliamLiSH 

 

For elapsed time,  I would suggest you use _time_get_elapsed() in second/millisecond time.

or in tick time with  _time_get_elapsed_ticks().

 

Regards

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,188件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @WilliamLiSH 

 

For elapsed time,  I would suggest you use _time_get_elapsed() in second/millisecond time.

or in tick time with  _time_get_elapsed_ticks().

 

Regards

Daniel

0 件の賞賛
返信
2,149件の閲覧回数
WilliamLiSH
Contributor II

Thanks for your reply. I use _time_get_elapsed_us() and it works now.

0 件の賞賛
返信