Example #1
0
        static void Main()
        {
            var sw = new Stopwatch();

            sw.Start();
            string result = new Day20().CalcB().ToString();

            sw.Stop();

            Console.WriteLine("It took " + sw.Elapsed);

            WindowsClipboard.SetText(result);
            Console.WriteLine(result);
        }
        static void Main(string[] args)
        {
            WindowsClipboard.SetText("");
            var totalTime = Stopwatch.StartNew();

            RunAll();
            WriteLine();
            WriteLine("Total:                 {0,12:##,###.000} ms", totalTime.Elapsed.TotalMilliseconds);;
            WriteLine();

            totalTime = Stopwatch.StartNew();
            RunAll();
            WriteLine();
            WriteLine("Total:                 {0,12:##,###.000} ms", totalTime.Elapsed.TotalMilliseconds);;
            WriteLine();
        }