Idiom
in time for somethingin time (for something)
before it is too late.I'm glad you made it in time.He planned to arrive in time to have dinner with his sister.I hope she gets here in time to see the show's opening number.
Usage notes: often used in the form just in time - almost too late:
He was just in time for his flight.