sex advice needed!

so I've realized that whenever I have sex, I can't do it for a long period of time.. I get tired or want it to be over with after like 30 minutes or so. I've heard stories where people last forever and I'm wondering is there a way to build my drive up like that? I'm not with anyone at the moment but I was just thinking about it!