While the physical trauma would have been instantaneous, they might have known it was going to happen. James Cameron just said in an interview[0] that they had a sensor system inside which detects when the hull is starting to fail, and that they probably had warning because they had dropped their weights to ascend.
[0] https://www.youtube.com/watch?v=rThZLhNF_xg