CPUUsage 

Gets the CPU usage of a system metric sample.

Syntax 

ADLX_RESULT     CPUUsage (adlx_double* data)

Parameters 

  1. [out] data adlx_double* The pointer to a variable where the CPU usage (in %) is returned.

Return Value 

If the CPU usage is successfully returned, ADLX_OK is returned.

If the CPU usage is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Requirements 

Header

include “IPerformanceMonitoring.h”

Minimum version

1.0