Severe leg cramps after 60 minutes

Options
swimming. This happens almost every time I swim, about 50 minutes into it. I do not think it is mag/potassium issue. Any insight?