He said he was going to make the second last train and he really didn't have any time to spare, but he was puffing away on a cigarette like he had all kinds of time.
この場合、次のような言い方ができますよ。
ーHe said he was going to make the second last train and he really didn't have any time to spare, but he was puffing away on a cigarette like he had all kinds of time.
「彼は時間に余裕はなかったのに、終電の一本前の電車に間に合うと言って、余裕をかましタバコをふかしていた」
the second last train で「終電の一本前の電車」と言えます。
to puff away on a cigarette で「タバコをふかす」
ご参考まで!