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