These drugs work by causing blood vessels to dilate (widen) toward the penis. An erection usually starts 5 to 15 minutes after the injection of the medicine, and an erection could usually last 1 to 2 hours.