BackgroundEnergyDiagnostics.ResetTotalEnergyUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.