Hello,
I'm using S32DS for ARM 2.2, SYS_CLK is configured as 80 MHz.
When I estimate time consumption by OSIF_GetMilliseconds in osif_baremetal.c, it takes around 114 ms when it returns 100 ms.
BR,
Matthew Xu
Hi 文明 徐,
Hope it helps: Measure the running time of one function on S32K
ARM Cortex-M have a DWT (Data Watchpoint and Trace) unit implemented, and it has a nice feature in that unit which counts the execution cycles.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------