   end
 
   defp do_wait_for_app(pid, time_remaining) do
-    start = System.monotonic_time(@time_unit)
+    start = System.monotonic_time(:millisecond)
 
     if System.get_env("VERBOSE_TESTS") do
       IO.puts("Waiting #{time_remaining}ms for app..")

        :ok

      _other ->
        ts = System.monotonic_time(@time_unit)
        do_wait_for_app(pid, time_remaining - (ts - start))
    after
      time_remaining ->

    end
  end

  # Wait for VM and application to start
  defp wait_for_app(bin_path) do
    parent = self()
