Return :not_implemented for Part 2 until done
This commit is contained in:
parent
79638bc9c9
commit
246640d2a1
1 changed files with 2 additions and 2 deletions
4
dayN.exs
4
dayN.exs
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue