A US army medic’s late night quest for a snack has gone viral, after he ended up cooking his own meal on finding the restaurant empty and the only worker asleep.

Alex Bowen, entered the South Carolina Waffle House after a night out with friends, but after standing at the counter for 10 minutes he started to suspect he might be out of luck.

With no other customers, and no staff in sight, he decided to take matters into his own hands and cook up a feast.

The 36-year-old knocked up a double Texas bacon cheese steak melt, recording each step of his illicit meal with a selfie.

He later posted the snaps of himself frying bacon, building his sandwich and even standing with the napping staff member who he spotted sleeping at a table.

Proud of the end result, Mr Bowen said he "even scraped the grill when I was done".

Not wanting to wake the staff member, Mr Bowen returned to the restaurant during the day to pay for his meal.

Naturally he took a selfie of that too.

Waffle House said they were impressed with Mr Bowen’s cooking skills.

But a spokesman for Waffle House told Sky News that "for safety reasons our customers should never have to go behind the counter".

He said the company’s local division manager had spoken to Mr Bowen and apologised.

"We are reviewing this incident and will take appropriate disciplinary action," he added.

The restaurant has since asked Mr Bowen to become a "Waffle House secret shopper".

(c) Sky News 2017: Man cooks up waffle feast after finding staff asleep