last ditch

Adjective

 * He stayed up all night in a last ditch effort to finish on time.
 * He stayed up all night in a last ditch effort to finish on time.