title: Simple example of the use of System. Timers. Timer in C#
body: <p>I read the MSDN site and everything but I cannot find the easy explanation on how to raise a timed event which accepts arguments which can be a <code>string</code> or <code>double</code>. The examples provided uses <code>ElapsedEventArgs</code> but none shows a good way of implementing my own arguments to the raised events.</p>
  
  <p>My code (I have not tested so might be wrong):</p>
  
  <pre><code>private double Pressure_Effect(double p, int t){
          time=(double) t;
          v=(((p/(rho*y))-g)*time)/(1.0+(mu*time/(rho*y*x)));
          return v;
  
      }
      private void Time_Handle(){
          System.Timers.Timer startTimer=new System.Timers.Timer(70);
          startTimer.Elapsed += new ElapsedEventHandler(Activate_Pressure);
  
      }
      private void Activate_Pressure(object source, ElapsedEventArgs e){
          pressure=2.5;
          double v=Pressure_Effect(pressure, 70);
  
      }
  </code></pre>
  
  <p>What I want to do is <code>Activate_Pressure</code> is redundant the sense that if I can pass the event directly to <code>Pressure_Effect</code> which I don't know how. I am new to C# so please bear with me. I know I have not enabled the timer and other critical parts might be missing in this code but I just posted it to make my question clear.</p>