akkoma/benchmarks/load_testing/helper.ex

12 lines
235 B
Elixir
Raw Normal View History

2019-08-02 12:33:12 -06:00
defmodule Pleroma.LoadTesting.Helper do
defmacro __using__(_) do
quote do
import Ecto.Query
alias Pleroma.Repo
alias Pleroma.User
defp to_sec(microseconds), do: microseconds / 1_000_000
end
end
end