How does the sentence end?

Despite waiting for hours, Betty hoped Mary would show up, as
Betty still had time to wait there for her.