matlab / Simulink timing

Is there a straightforward way to record the amount of time spent in different parts (subsystems) in a Simulink model?

I am trying to separate the time taken in turbine simulation from the time taken for the actual (pitch) controller.

You can use heuristic ways to compute the time taken by active subsystems. For example using if action blocks.