my-solutions/one-billion-row/lib/task.ex

10 lines
211 B
Elixir
Raw Permalink Normal View History

2024-08-24 16:30:35 +05:00
defmodule Mix.Tasks.Obr do
use Mix.Task
def run(_) do
{time, res} = :timer.tc(&Obr.process_file/1, ["measurements.txt"], :second)
IO.puts(res)
IO.puts("Time elapsed: #{time} seconds")
end
end