Is there a need to have some mechanism to check the amount of time certain sections of code were taking?
The video in the link below shows the inline code to be inserted into an action diagram.
https://www.youtube.com/watch?v=-ucuWrRPswc