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

timerstart (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

timerstart

Legacy Name: tic

Description

Starts the stopwatch timer. Use timerstart with timerstop 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
timerstop


 

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