public static StopWatch fillStopWatch(StopWatch stopWatch) { ConsoleKeyInfo input; long min, max; do { Console.Write("Press Enter to start -> "); input = Console.ReadKey(); min = DateTime.Now.Ticks; Console.Write("min = " + min.ToString() + "\n"); Console.Write("Press Enter to finish ->"); input = Console.ReadKey(); max = DateTime.Now.Ticks; Console.Write("max = " + max.ToString() + "\n"); TimeInterval currentTimeInterval = new TimeInterval(min, max); stopWatch.insertTimeInterval(currentTimeInterval.getTimeInterval()); } while (input.Key.ToString() != "Q"); return(stopWatch); }