I recently saw the sentence
You won't have a long time to wait to do something.
I would have used
You won't have a long time to wait before doing something.
By the way, is there a difference between
I have waited to see the moon
I have waited before seeing the moon?