(Using WPF)
In a small application that I wrote, I am using some count-down timers.
For this I have used the DispatcherTimer
.
counter01 = new DispatcherTimer();
counter01.Tick += new EventHandler(counter01_Tick);
counter01.Interval = new TimeSpan(0, 0, 1);
But now when I test/use the program, I have noticed that when it's set to (for example) 60 minutes count-down, it gets a few minutes off compared to the real world time.
Could it be that for some reason DispatcherTimer
is not always exactly 1 second if I use it like I did above?