Removed some of the timer code
This commit is contained in:
parent
2bf568784a
commit
87c917393b
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue