UNPKG

@nodert-win10/windows.system.power.diagnostics

Version:

Use the Windows.System.Power.Diagnostics UWP API directly from Node.js

30 lines (14 loc) 512 B
declare module "windows.system.power.diagnostics" { export class BackgroundEnergyDiagnostics { static deviceSpecificConversionFactor: Number; constructor(); static computeTotalEnergyUsage(): Number; static resetTotalEnergyUsage(): void; } export class ForegroundEnergyDiagnostics { static deviceSpecificConversionFactor: Number; constructor(); static computeTotalEnergyUsage(): Number; static resetTotalEnergyUsage(): void; } }