Against the clock

Before a particular time.

We worked against the clock to finish the project.