-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
36 lines (25 loc) · 1.12 KB
/
Program.cs
File metadata and controls
36 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Diagnostics;
namespace AdventOfCode2024;
internal static class Program
{
static void Main()
{
Stopwatch sw1 = new Stopwatch();
Stopwatch sw2 = new Stopwatch();
var solution = new AdventOfCode2024.Day8.Solution();
/* First Solution */
sw1.Start();
Console.Write("Solution 1: " + solution.Solve1(@"Z:\source\AdventOfCode2024\Day8\input.txt")
, Console.ForegroundColor = ConsoleColor.DarkGreen); Console.ResetColor();
sw1.Stop();
Console.WriteLine(" | Elapsed Time: " + sw1.Elapsed, Console.ForegroundColor == ConsoleColor.Blue);
Console.ResetColor();
/* Second Solution */
sw2.Start();
Console.Write("Solution 2: " + solution.Solve2(@"Z:\source\AdventOfCode2024\Day8\input.txt")
, Console.ForegroundColor = ConsoleColor.DarkGreen); Console.ResetColor();
sw2.Stop();
Console.WriteLine(" | Elapsed Time: " + sw2.Elapsed, Console.ForegroundColor == ConsoleColor.Blue);
Console.ResetColor();
}
}