Timer
- Updated2023-02-21
- 1 minute(s) read
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.