单项选择题

Peter had no idea how long will he spend there he got the order,

A. while
B. until
C. after
D. when