Return :not_implemented for Part 2 until done

This commit is contained in:
Adam Millerchip 2024-12-22 18:35:39 +09:00
parent 79638bc9c9
commit 246640d2a1

View file

@ -5,7 +5,7 @@ defmodule DayREPLACE_ME do
end end
def part2(_input) do def part2(_input) do
:ok :not_implemented
end end
def input do def input do
@ -36,7 +36,7 @@ defmodule DayREPLACE_ME do
defp run_with_timer(part, fun) do defp run_with_timer(part, fun) do
{time, result} = :timer.tc(fun) {time, result} = :timer.tc(fun)
IO.puts("Part #{part} (completed in #{format_time(time)}):\n") IO.puts("Part #{part} (completed in #{format_time(time)}):\n")
IO.puts("#{inspect result}\n") IO.puts("#{inspect(result)}\n")
end end
defp format_time(μsec) when μsec < 1_000, do: "#{μsec}μs" defp format_time(μsec) when μsec < 1_000, do: "#{μsec}μs"