CVITimeIntervalToTimeUnit
int CVITimeIntervalToTimeUnit (CVITimeInterval interval, CVITimeUnit unit, CVITimeRoundMethod rounding, __int64 *value);
Purpose
Converts a time interval value to the specified time unit using the specified rounding method.
Parameters
Input | ||||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||||
interval | CVITimeInterval | Time interval value in National Instruments Binary Time Format. | ||||||||||||||||||||||||
unit | CVITimeUnit |
The time unit of the argument you pass to the value parameter. You can specify the following values:
CVITimeUnitBase is defined as 919263177UL - 48UL. |
||||||||||||||||||||||||
rounding | CVITimeRoundMethod |
The rounding method to apply when converting a time interval value to the specified units. You can specify the following values:
|
||||||||||||||||||||||||
Output | ||||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||||
value | __int64 | The value of the time interval in the specified units. |
Return Value
Name | Type | Description | |||||||||||||||||||||
status | int | The result of the function call. Negative values represent errors. The following table describes the results that this function returns.
|
Additional Information
Library: Utility Library
Include file: utility.h
LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later