Skip to content

GetSamplingInterval

Navigation: ADLX SDK References → ADLX Interfaces → Performance Monitoring → IADLXPerformanceMonitoringServices

Gets the sampling interval for performance monitoring.

Syntax

ADLX_RESULT    GetSamplingInterval (adlx_int* intervalMs)

Parameters

#DirectionNameTypeDescription
1.[out]intervalMsadlx_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

Headerinclude “IPerformanceMonitoring.h”
Minimum version1.0

See Also: GetSamplingIntervalRange, ADLX Enums