public void Start(object sender, StartedFinishedEventArgs args) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Start"); Console.WriteLine("Date now {0}", args.CreatedDate); StopWatch.Start(); }
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); }