The Derby end of the North Staffordshire line provides some good examples of the different times needed for different crossings.
At Tutbury and Hatton, generally the barriers come down around 3 minutes before arrival. The signal box needs to lower the barriers, confirm clear then clear signals in time before the train reaches its distant signal (from either Sudbury or Egginton Jct)
A short distance down the line at Marston, there is probably no more than a minute of downtime as the crossing is a automatic half barrier
However, the next crossing is Hilton’s manual crossing which is closed by a crossing keeper, but with protecting signals under Egginton Junction. As the distant (just after Marston crossing) needs to be clear by the time the train arrives, I’d imagine the crossing close process has to be started once Tutbury gives train in section, which can be given once a train is standing at Tutbury and Hatton. The above stops road traffic for a good 5 minutes.