In time (to do something)
Meaning: early or at the right time, before something begins
Example: We arrived in time to catch the train. I came in time to have a cup of coffee before class.
Example: We arrived in time to catch the train. I came in time to have a cup of coffee before class.