Include timing information
This commit is contained in:
@@ -4,10 +4,13 @@ defmodule Aoc2023 do
|
||||
import Aoc2023.Common
|
||||
|
||||
def main(input) do
|
||||
{took, _} = :timer.tc fn ->
|
||||
parsed = parse(input)
|
||||
IO.puts("Part 1: #{part1(parsed)}")
|
||||
IO.puts("Part 2: #{part2(parsed)}")
|
||||
end
|
||||
IO.puts("Took #{took / 1_000}ms")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user