SetSamplingInterval

Sets the sampling interval for the performance monitoring.

Syntax

Copied!

ADLX_RESULT     SetSamplingInterval (adlx_int intervalMs)

Parameters

  1. [in] intervalMs adlx_int The sampling interval (in millisecond).

Return Value

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

If the sampling interval is not successfully set, 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