Exemple #1
0
 public void Start(object sender, StartedFinishedEventArgs args)
 {
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine("Start");
     Console.WriteLine("Date now {0}", args.CreatedDate);
     StopWatch.Start();
 }
Exemple #2
0
 public void Finish(object sender, StartedFinishedEventArgs args)
 {
     StopWatch.Stop();
     args.FinishDate         = DateTime.Now;
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine("Finish");
     Console.WriteLine("Date now {0}", args.FinishDate);
 }