it takes sb.sometimes to do sth.
花费某人多长时间干某事
所以选D
I used to like to eat candies
be used to doing something习惯于干某事