You should continue resting for at least a few hours even after the cramps stop. If you start exercising too soon you could get heat exhaustion or heatstroke.