单项选择题

I was just coming out of the sea after a swim ______ I stepped on a sharp stone and cut my foot.

A.as
B.when
C.than
D.before