Pumping maybe 1 ounce every 2 hours ?

I am 6 weeks pp and in the first 4 weeks I was using a hand pump to keep my supply because baby wouldn’t latch and my electric never arrived. I honestly pumped every now and then because of medical complications, so in other words I wasnt able to do what most women need to do to keep their supply. After 4 weeks baby finally latched but by then my milk supply was so low it didn’t matter, my electric pump finally arrived yesterday and I’ve been pumping every 2 hours. I get about half an ounce from both breasts combined every 2 hours and at this point I’m wondering if it’s even worth it, I feel like it’s impossible to get my supply back now.

My doctor also told me I would be better off quitting.

Does anyone have advice? I’m willing to do whatever it takes but if it’s basically impossible at this point then I’m wondering if I should give up?