Why are there five timer classes in the .Net framework, namely the following:
System.Timers.Timer
System.Threading.Timer
System.Windows.Forms.Timer
System.Web.UI.Timer
System.Windows.Threading.DispatcherTimer
Why are there several versions of the Timer class? And what are the differences between them?
Timers.Timer
generates an event after a set interval, with an option to generate recurring events. MSDN
Windows.Forms.Timer
is a Control for winforms.
Web.UI.Timer
performs asynchronous or synchronous Web page postbacks at a defined interval. MSDN
Threading.Timer
is the timer for Callbacks. Creates a new Thread for working. Served by thread pool threads. MSDN
So, these timers have different purposes, also they are served by different tools.