Time elapsed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,614件の閲覧回数
anshun
Contributor II

Hi,

I am using mcuexpresso for my project.

How to calculate the time elapsed in microseconds .

Is there any API to get the count or time?

0 件の賞賛
返信
1 解決策
1,604件の閲覧回数
nickwallis
Senior Contributor I

You can use the DWT as a cycle counter, either to measure execution time or for delays.

https://mcuoneclipse.com/2017/01/30/cycle-counting-on-arm-cortex-m-with-dwt/

-Nick

 

元の投稿で解決策を見る

1 返信
1,605件の閲覧回数
nickwallis
Senior Contributor I

You can use the DWT as a cycle counter, either to measure execution time or for delays.

https://mcuoneclipse.com/2017/01/30/cycle-counting-on-arm-cortex-m-with-dwt/

-Nick