Which if the following is a main clause ?

A. The poor horse with a broken leg.

B. As it was getting dark outside.

C. When the time came.

D. The veterinarian knew.