Does the timer use more processor power?

I used a timer and I found it very useful when making decisions in seconds or milliseconds. Now I have strong feelings that the continuous start of the timer gradually increases the consumption of processor cycles.

I created the application (C #) and used the "timer" to execute the "three" instructions in 1000 milliseconds (1 second), and I noticed that after 5 minutes the application consumed 5% of the processor power and 10% after 10 minutes.

If this progress remains constant, then what will happen in 4-5 hours if I run the application in the background?

Should overuse of the timer be avoided?

private void currentTime_Tick(object sender, EventArgs e)
{
   label1.Text = DateTime.Now.ToString("HH:mm:ss tt");
   label2.Text = dt.AddSeconds(i).ToString("HH:mm:ss");
   i++;
}
+5
source share
1

, , . , ? , , .

+1

All Articles