It takes a ship about three hours to pass through the three lock chambers of the Panama Canal.