Udostępnij za pośrednictwem


Do not use timers that prevent power state changes

TypeName

DoNotUseTimersThatPreventPowerStateChanges

CheckId

CA1601

Category

Microsoft.Mobility

Breaking Change

Breaking

Cause

A timer has an interval set to occur more than once per second.

Rule Description

Do not poll more often than once per second or use timers that occur more frequently than once per second. Higher frequency periodic activity will keep the CPU busy and interfere with power-saving idle timers that turn off the display and hard disks.

How to Fix Violations

Set timer intervals to occur less than once per second.

When to Suppress Warnings

This rule should be suppressd only if firing the timer more than once per second is required and mobility considerations can safely be ignored.