1) The immigration formalities are supposed to be done on your first port of entry, so in your case, it should be Montreal. Then the Montreal to Toronto would count as a domestic flight.
2) It depends on how many people they have to process, the odds are that it won't take that long for you...