It depends on the context and what effect you want to convey to the reader. For example, I like the second sentence if you want to emphasize that you have perfectly timed your arrival to coincide with that of the train.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.