Exemple #1
0
        static void Main(string[] args)
        {
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            var dayTwoOutput = DayTwo.ValidPasswordCountProblemOne(Properties.Resources.Exercise_02.Split(Environment.NewLine));

            stopwatch.Stop();
            Console.WriteLine($"Day Two Output: {dayTwoOutput} completed in {stopwatch.Elapsed.TotalMilliseconds} milliseconds");
            stopwatch.Reset();
            stopwatch.Start();
            var dayTwoOutputProblem02 = DayTwo.ValidPasswordCountProblemTwo(Properties.Resources.Exercise_02.Split(Environment.NewLine));

            stopwatch.Stop();
            Console.WriteLine($"Day Two Output: {dayTwoOutputProblem02} completed in {stopwatch.Elapsed.TotalMilliseconds} milliseconds");
        }