Owning Class: timing
Requires: MathScript RT Module
timerstop
Legacy Name: toc
Stops the stopwatch timer and outputs the elapsed time in seconds. Use timerstop with timerstart to determine the computation time of a specific code segment. (Real-Time Module) Use the rt_tickcount function for high-precision timing when running MathScript code on an RT target.
When you call this function in a MathScript Node with debugging disabled, LabVIEW operates with slightly reduced run-time performance for the node. This behavior causes timing results to differ from the timing and execution characteristics of the VI when you are not timing it with this function. To avoid this behavior, you can use the Timing VIs and functions outside of the MathScript Node.
timerstart
for i = 1:100000
a = sqrt(2);
end
timerstop