单项选择题

By the time I left the School, the professor ______ that class for two years.

A.has taught
B.had taught
C.will have taught
D.will teach