With IAR Embedded Workbench 、PE and S32K146，how I can view the time a function run？
This is rather a question for IAR support.
But if you want to measure the execution time of a function, you can use DWT.
ARM Information Center
Cycle Counting on ARM Cortex-M with DWT | MCU on Eclipse
Thank you very much！
Retrieving data ...