It was one o'clock before we'd finished.
The time was one o clock by the time we ended.