GetSamplingInterval

Gets the sampling interval for performance monitoring.

Syntax

Copied!

ADLX_RESULT     GetSamplingInterval (adlx_int* intervalMs)

Parameters

  1. [out] intervalMs adlx_int* The pointer to a variable where the sampling interval (in millisecond) is returned.

Return Value

If the sampling interval is successfully returned, ADLX_OK is returned.

If the sampling interval is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

The sampling interval is the time gap between two samples. Obtain the sampling interval range with GetSamplingIntervalRange . The default sampling interval is 1000 ms.

Requirements

Header

include “IPerformanceMonitoring.h”

Minimum version

1.0