单项选择题

______, John had to stay up for the night to finish his paper.

A.Having not given enough time
B.Having not been given enough time
C.Not having been given enough time
D.Not having given enough time