Plenty of people use the toilet in an exam, can understand you don't want to waste time but it doesn't take you 10 minutes to pee surely?
If you really think it's going to be a problem, use incontinence wear? Nobody would notice.
And wow, some weird stuff comes up on google when you type these kind of questions in.