It can take a few days or a couple of weeks, depending on various factors. In most cases, I'd wait until the sensitivity is gone to do hard work or go over rocky, chopy ground to avoid further brusing the area, but mild exercise is fine, or on semi-soft dirt to help it heal up. If it doesn't turn into an abscess, the trouble is over once the pain has disappeared.