The design uses modules which communicate to each other by messages. The module waits for a message in a subvi and when it receives a message it executes the command in the main vi. My goal is to see how much time is spent waiting on the next message and how much time module spends executing code. If the module is always executing code there is a problem since it will be slow responding to messages.
I attached a very stripped down version which includes my timing code (which works, I just hope there's a better way). I also included another VI which I was thinking would lead to a solution, but it doesn't work as I hoped.
Code is LV 2011.
performance statistics.zip