Commit 62998e81 authored by David's avatar David

It's updated with timings

parent ea4543c5
......@@ -3,6 +3,7 @@ package is.kow.adventofcode._2019
object Main extends App {
val p3 = new Puzzle3
println("Failed Attempt 1:")
val p3Start = System.currentTimeMillis()
println(s"DISTANCE: ${p3.distance("input.txt")}")
println(s"Cheapest path: ${p3.cheapestRoute("input.txt")}")
......@@ -15,6 +16,7 @@ object Main extends App {
val cheapest = Puzzle3Loader.process("input.txt", p32.shortestPath)
val p32End = System.currentTimeMillis()
println("Attempt 2:")
println(s"Distance: $distance -- Cheapest: $cheapest")
println(s"Original: ${(p3End - p3Start) / 1000}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment