magnesium timing