question: Hamstring pain. Can I take ibuprofin for the pain? I know how to stretch the hamstring, I know several stretches. Will a heat pack help? How long will the hamstring take to heal? I felt the pain about 4 weeks ago but still entered the Mothers Day Classic 8k run on 11 May. I did some running, mostly walked. The pain was less when I was running than walking.