title: C# Timer For Event Handler
body: <p>I currently have the following event handler</p>
  
  <pre><code>WqlEventQuery query = new WqlEventQuery("__InstanceModificationEvent", 
  new TimeSpan(0, 0, 1), "TargetInstance ISA \"Win32_NetworkAdapterConfiguration\"");
  
          ManagementEventWatcher eventWatcher = new ManagementEventWatcher(query);
          eventWatcher.EventArrived += new EventArrivedEventHandler(eventArrived);
          eventWatcher.Start();
  
   private void eventArrived(object sender, EventArrivedEventArgs e)
   {
      //Event Codes
   }
  </code></pre>
  
  <p>I need help in developing a (one time) timer. Here is how it should work.</p>
  
  <ol>
  <li>When there is an event,the timer would start to run!</li>
  <li>Because there may be many occurrences of the event,if the timer has started,do not start the timer again ! (one time)</li>
  <li>Timer Duration Shall Be 5 seconds</li>
  <li>During the time(5seconds),the timer event must enumerate if the connection status of the network adapters.</li>
  </ol>
  
  <p>Everyone's advice/help/suggestions/solution regarding this question would be deeply appreciated. I am confused with the mechanism of a (one time) timer !</p>