单项选择题

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