The time interval may be controlled by a level crossing predictor, an electronic device which is connected to the rails of a railroad track, and activates the crossing's warning devices (lights, bells, gates, etc.) at a consistent interval prior to the arrival of a train at a level crossing.