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

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

c = cputime

Description

Returns the CPU time in seconds. The base reference time, or millisecond zero, is undefined. You cannot convert a millisecond timer value to a real-world time or date. The value of the millisecond timer wraps from (2^32)-1 to 0.

Examples

Outputs

Name Description
c Returns the value of the LabVIEW millisecond timer divided by 1000. c is a scalar number.

Details

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

A = cputime
for i = 1:1000 sqrt(pi);
end
B = cputime
C = B-A

Related Topics

clock
date_to_num
date_to_str
etime
now
timerstart
timerstop


 

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