You need to use Timer class. There are multiple built-in timers and it depends on the requirement which timer to use.
System.Timers.Timer: This is more suitable for mutlithreaded access. Instances of this timer are threadsafe.
System.Threading.Timer : Instances of this timer are not thread safe.
System.Windows.Threading.DispatcherTimer -> It sends event to Dispatcher thread (and is not multithreaded). This is useful if you need to update UI.
System.Windows.Forms.Timer -> This timer raises events in UI thread. This is optimized for windows forms, and not to be used in WPF.
Following is an interesting read.
Comparing the Timer Classes in the .NET Framework Class Library