There are hospitals (eg Central Texas Medical Center)that provide a phone app that will tell you how long the wait is, and I have seen ER wait times advertised on electronic billboards.
Note: this is time to see a triage nurse, not necessarily be treated.
Some ERs let you schedule appointments in the ER via phone app. I think Resolute in New Braunfels does this.