I don't understand this scenario, how long is the piece of track that you had to clear? Does the road not simply cross over the track? Even at 10km/h, you'd clear the <2m of track in 0.72 seconds, barely enough time to notice the train was coming and start accelerating. Is this instead a situation where you were nearing the track with too much speed to stop before reaching it, so you had to accelerate instead to clear it?