Problem on OSIF_GetMilliseconds

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem on OSIF_GetMilliseconds

2,053 次查看
xu_wenming
Contributor II

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

标记 (2)
0 项奖励
回复
1 回复

1,981 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复