Thanks for query,
Sex is in our mind.
This is a best example of it.
Sexual act has four stages .Arousal,Erection.Ejeculation & Lag period.
Your Arousal erection & ejeculation has no time in between.
You should leave thoughts of sex from mind.Just divert your mind from sex.Talk about different subject with girls.
Increase your confidence.