idiom
beat the clock
Meaning
to finish something before the deadline
Example
We managed to **beat the clock** and submit the report early.