There is no set duration, whether you use the edging technique on your own during the masturbation or sex with your partner. It is always about doing what gives us pleasure and what we feel like doing. No rule indicates when it is right to reach the orgasm.