     %{config: config, jobs: []}
   end
 
-  @seconds_to_microseconds 1_000_000
   defp convert_time_to_micro_s(config) do
     {_, config} = Map.get_and_update! config, :time, fn(seconds) ->
       {seconds, Time.seconds_to_microseconds(seconds)}

    suite
  end

  defp do_benchmark(time, function, results \\ [], total_run_time \\ 0)

  defp do_benchmark(time, _, results, time_taken) when time_taken > time do
    results
  end

  defp do_benchmark(time, function, results, total_run_time) do
    run_time = measure_call(function)
    do_benchmark(time, function, [run_time | results], total_run_time + run_time)
  end

  defp measure_call(function) do


  @doc """
  Runs the given benchmark for the configured time and returns a suite with
  the benchmark run_times added.
  """
  def benchmark(suite = %{config: %{time: time}}, name, function) do
    IO.puts "Benchmarking #{name}..."
