Got a function generated from simulink, need to test the running time of this function, how can i get the whole time cost for this particular function in MPC5748g project ?
You can toggle pin before and after the function calling and measure the it by scope. Or you can trigger timer as STM or PIT and read the value.
Or use some advanced debugger with TRACE capability what should be capable to show it directly.