I have also done something similar with a sequence structure. Take the Tick Count in the first frame, run your VI in the second, and then take the Tick Count again in the third frame. Now take the difference of the two Tick Counts and that's how long it took to run.
J.R. Allen