339pm
Technically this process is called preclearance.US and canada have this arrangement at certain Canadian International airports where US immigration is completed before taking the flight and no immigration is required when you land in USA.
Toronto, Calgary and some others are the airports...