title: System timer c#
body: <p>I have some code involving a system timer that starts counting in seconds when a file is added to a folder then stops when it is removed.  when the timer is stopped is shows the correct time however when I restart the timer  it picks up where it left off instead of restarting at 0. Here is my code..</p>
  
  <pre><code>        t2 = new System.Timers.Timer();
          t2.AutoReset = true;
          t2.Interval = 1000;
          t2.Elapsed += OnTimeEvent2;
          watch();
  
      }
      private void OnTimeEvent2(object sender, System.Timers.ElapsedEventArgs e)
      {
          Invoke(new Action(() =&gt;
          {
  
              s += 1;
  
              lblSeconds.Text = string.Format(s.ToString());
  
          }));
      }
  </code></pre>