Granted, all guys have their moments where things fire off a bit more quickly than planned. Realistically, 15 to 30 minutes is about what most people can manage for actual intercourse including foreplay. That's enough time for everyone to orgasm. If it takes longer than that for your gal to cum, the problem isn't stamina. For average folks... most people don't have the luxury of banging all night because they have other obligations to handle most of the week. Any guy, with enough effort aside from some unfortunate medical condition, should be able to build up his stamina enough to last at least 15 to 30 minutes. Most of the women I've been with are well tapped out after 20 minutes of penetrative intercourse.
Take all that I'm saying as thought it were a broad brush. I don't like it when people just assume that they can't bang long enough to get a woman off and wallow in a defeatist attitude. Then again, some folks might actually find sexual gratification through such circumstances (e.g. having other men take care of business for you and your gal).
Got to get your mental and physical game together.
Physical game: General good fitness (you don't need abs, but, if you can't go up a flight of stairs without getting winded, do ya think you're going to bang like a pro?), pelvic floor muscle exercises, controlled breathing (slow and deep), use/learn edging techniques in your spare time, and practice (aka have sex)! Practice is important and I firmly believe that any couple who is sexually active should be continuously working on improving their sex life. Sex once every week or other week won't get the job done.
Mental game: This is a bit more abstract. Your thoughts can be your friend or your enemy. You know the old joke where you're supposed to think about baseball during sex... it does work to a degree. Try to change how you're thinking during sex while not becoming absent in the act. If you're just staring at her jugs swinging back and forth like you're watching porn, you aren't going to last very long. Again, this is abstract... you have to somewhat sort out your own mental game by analyzing what thoughts get you more 'hot and bothered' than others.
Get these two together, your sexual performance will improve. It takes work - and that's usually where most people fail. They don't want to do the hard work to achieve the goal.