If a student has to use the bathroom, s/he may simply politely and quietly excuse him/herself for a few minutes.
But is there any established etiquette for what an instructor is to do when nature suddenly calls? Let's say this is a typical classroom lecture of about 90 minutes, meaning a student body of about 80-90 and no scheduled breaks.
Oh, also, let's assume that there's no real illness or other crippling circumstance that forces the instructor to leave; just a good old-fashioned porcelain inspection, resulting from consuming just a bit much V8 an hour earlier (seriously, that strawberry-banana V-Fusion is addictive).