Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

timerstart (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

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.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

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