I haven't taken that train in many years, but they basically stop the train at the border and immigration agents board and check everyone's passport. It's scheduled to take 2 hours. Really stupid. It's a 45 minute flight, and you go through US immigration in Canada before boarding the flight.