Fetching details from the dictionary...

to be in time (for)
to serve (suit, meet) the purpose; to be good enough; to be enough; to manage; to make do
ぎりぎり電車に間に合いました。
I made it in time for the train.
授業に間に合うように急ぎます。
I'll hurry to be in time for class.
走ったおかげで最終バスにぎりぎり間に合った。
Thanks to running, I barely made it in time for the last bus.