Compare commits

...

3 commits
main ... timer

Author SHA1 Message Date
Eoghan Conlon
110e53f063 Day 1 timeing implemented
Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
2024-08-23 12:26:30 +01:00
Eoghan Conlon
e771a65910 Complete program timer implemented
Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
2024-08-23 12:22:09 +01:00
Eoghan Conlon
09d91fd001 Changed to day 1 sample file for testing timer
Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
2024-08-23 12:18:06 +01:00

View file

@ -1,10 +1,20 @@
package main package main
import "fmt" import (
"fmt"
"time"
)
func main() { func main() {
input := FileParse("input/test.txt") start := time.Now()
for _, s := range input { fmt.Println("Day 1.....")
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))
} }