单项选择题

Mary had finished her homework ______ the time I got home.()

A. until
B. at
C. by
D. when