static void Message(object publisher, TimeElapsedEventArgs e)
 {
     Console.WriteLine("{0} ticks left...", e.Ticks);
 }
Example #2
0
 public static void Timer_TimeChanged(object sender, TimeElapsedEventArgs e)
 {
     Console.WriteLine("Time elapsed {0}", e.TicksCount);
 }
 public void Subscribe(int ticks)
 {
     TimeElapsedEventArgs e = new TimeElapsedEventArgs(ticks);
     TimeElapsed(this, e);
 }
Example #4
0
		public static void Timer_TimeChanged(object sender, TimeElapsedEventArgs e)
		{
			Console.WriteLine("Time elapsed {0}", e.TicksCount);
		}