Contents

currentPowerConsumption

Finds out the current power consumption of a device.

Declaration

unsigned long currentPowerConsumption(
 void );

Return Value

A copy of the staticPower field for the current power state in the power state array.

Overview

Most macOS power managed drivers do not report their power consumption via the staticPower field. Thus this call will not accurately reflect power consumption for most drivers.

See Also

Miscellaneous