单项选择题

The port clearance for a ship should be granted()the completion of loading or discharging in the port.

A.before
B.when
C.after
D.during