Share via


BackgroundEnergyDiagnostics.ResetTotalEnergyUsage Method

Definition

Clears the value that represents the total cumulative energy usage of the background task since the last reset.

Important

These APIs consume significant CPU resources. We recommend using these APIs only for debugging purposes.

public:
 static void ResetTotalEnergyUsage();
 static void ResetTotalEnergyUsage();
/// [Windows.Foundation.Metadata.Deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
 static void ResetTotalEnergyUsage();
public static void ResetTotalEnergyUsage();
[Windows.Foundation.Metadata.Deprecated("Background Energy Diagnostics has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
public static void ResetTotalEnergyUsage();
function resetTotalEnergyUsage()
Public Shared Sub ResetTotalEnergyUsage ()
Attributes

Remarks

This method doesn't reduce energy consumption, it simply resets the counter used to track total energy usage.

Applies to