From 87c917393b9b12ac339ad98c8023eb901f33e5be Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Fri, 6 Dec 2024 01:40:48 -0600 Subject: [PATCH] Removed some of the timer code --- 2024/day6/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/2024/day6/main.go b/2024/day6/main.go index d0b3b03..31db249 100644 --- a/2024/day6/main.go +++ b/2024/day6/main.go @@ -6,7 +6,6 @@ import ( "fmt" "os" "sync" - "time" ) var transformations = map[Direction]func(loc Location) Location{ @@ -137,6 +136,7 @@ func Part2(grid [][]string, initial Location) int { go func() { defer close(res) + wg.Wait() }() @@ -191,7 +191,6 @@ func main() { answer := Part1(grid, initialLocation) fmt.Println(answer) - start := time.Now() answer = Part2(grid, initialLocation) - fmt.Println(answer, time.Since(start)) + fmt.Println(answer) }