TimGetMeasureMode


Function

Retrieves the current Measure Mode.

Format

Ret = TimGetMeasureMode(MeasureMode)

Parameters

MeasureMode [ VB.NET: Short ] [ C, C++: short *] [ C#: out short ]

Measure Mode

 

Definition

Value

Description

TIM_MEASURE_HIGH

0

High precision

TIM_MEASURE_NORMAL

1

Normal precision

Return value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]

Definition

Value

Description

TIM_ERR_SUCCESS

0

Normal completed

TIM_ERR_DLL_NOT_INITIALIZED

10010

It is not initialized. Please confirm whether the initialization function has completed normally.

TIM_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

The others (See also:Details of Error Code)

Initial Value

TM_MEASURE_HIGH

Remarks

In the case of High precision, because the Timer is polling always, the precision is raised. Therefore the CPU load is increased.

In the case of Normal precision, because the monitor interval is free, the CPU load is reduced.

See Also

TimSetMeasureMode