单项选择题

I worked so late in the office last night that I hardly had time () the last bus.

A.to have caught
B.to catch
C.catching
D.having caught