单项选择题

The boat drifted along on the sea for a good hour ______ it was safely anchored at the dock.

A.before
B.When
C.After
D.while