Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

timerstop (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: timing

Requires: MathScript RT Module

Syntax

timerstop

Legacy Name: toc

Description

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.

Details

Examples

Details

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.

Examples

timerstart
for i = 1:100000
     a = sqrt(2);
end
timerstop

Related Topics

clock
cputime
timerstart


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit