With your body filled with testosterone - growth hormone - and your penis rubbing against your clothing every time you move, you are going to have frequent erections.
Your question suggests that you are concerned that you are getting way too many erections in a day. Here is what you need to know: Getting frequent erections is a great thing for a teenager. It means that you are perfectly NORMAL. It means that everything down there is working and working correctly.
The trick is to learn how to hide it so you don't share you happiness with all your friends. Wear baggy pants and long shirts. Have pants with large pockets so you can reach it with your hand in your pocket and keep it from sticking straight out.
Adults:
This will depend on your age. As your body ages, it becomes harder to "bounce back" from any sort of exertion, including sexual ones. As you pass 30, you may notice a lag time of 15 minutes or so, and as you get older, this may increase to several hours. It isn't how many erections you get that is important, it is how well you enjoy the ones you do have. Older men often need more physical stimulation to achieve a firm erection, but other than that, everything will continue to work the way it has always worked for you.