Where is timer in a Windows store app?

Tom picture Tom · Dec 8, 2012 · Viewed 9.7k times · Source

I could not find the Timer when developing a Windows Store App in c#. What is the alternative /new name/way of use of it?

Answer

Mayank picture Mayank · Dec 8, 2012

DispatcherTimer is what you are looking for

var timer = new DispatcherTimer();
timer.Tick += DispatcherTimerEventHandler;
timer.Interval = new TimeSpan(0,0,0,1);
timer.Start();