Day 1 timeing implemented
Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
parent
e771a65910
commit
110e53f063
1 changed files with 7 additions and 2 deletions
|
@ -7,9 +7,14 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
input := FileParse("input/day01/sample.txt")
|
fmt.Println("Day 1.....")
|
||||||
for _, s := range input {
|
D1_start := time.Now()
|
||||||
|
sample_input := FileParse("input/day01/sample.txt")
|
||||||
|
fmt.Printf("Input parsing (%v).....\n", time.Since(D1_start))
|
||||||
|
for _, s := range sample_input {
|
||||||
fmt.Println(s)
|
fmt.Println(s)
|
||||||
}
|
}
|
||||||
|
fmt.Printf("Day 1 took %v to run\n", time.Since(D1_start))
|
||||||
|
fmt.Println("End of AoC code")
|
||||||
fmt.Printf("This took %v to run", time.Since(start))
|
fmt.Printf("This took %v to run", time.Since(start))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue