单项选择题

He ______ for her for one hour by the time she arrived there.

A.has been waiting
B.has waited
C.had been waiting
D.waited