How long do you typically pump for?

I only pump at night right before bed bc my baby gets one bottle of formula to help boost weight gain. I only pump about 10 minutes and get 3-4 ounces. 😬 is that not long enough? My baby is 2.5 months old.