title: C# Executing a method with intervals using system.threading.timer
body: <p>Hello
  Lets say I have a console application, that looks like this</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
  
      }
  
      public void DoSomething()
      {
          Console.WriteLine("Hello World");
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I wan't to execute my DoSomething method every 10'th second by using System.Threading.timer. Can anyone give an example of how that is done?</p>
  
  <p>Thanks in advance :)</p>