LabWindows/CVI

Content Type
Programming Language
Current manual

Timer

Timer

double Timer (void);

Purpose

Returns the number of seconds elapsed since the first call to Timer, Delay, or SyncWait, or the first operation on a timer control.

The value is never reset to zero except when you restart the program.

The resolution is normally 1 microsecond. However, if you set the useDefaultTimeruseDefaultTimer configuration option to True, the resolution is 55 milliseconds.

(Linux) The resolution is 1 millisecond.

Parameters

None.

Return Value

Name Type Description
numberOfSeconds double Number of seconds since the first call to Timer or the first operation on a timer control.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Example

Refer to apps\daqmthread\daqMT.cws for an example of using the Timer function.

Was this information helpful?

Previous

Timer/Wait

Next

Delay

Previous

Timer/Wait

Next

Delay