In the UK in sixth form (the two years prior to university) - speaking from my own experience only of course - we would generally come and go as at university, the only difference being that the teacher might question it, (in contrast to lecturers never caring, at least not in a disciplinary or educational sense) in which case 'just going to the loo/getting a coffee miss' was fine. That's about as in between as I can imagine.