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?
已解决! 转到解答。
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
在原帖中查看解决方案