Severe leg cramps after 60 minutes

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