In the US there is none of this, you just roll up to the gate, it used to depend of some airline minimum wage check in people tearing little green cards out of your passport and them getting to the right government person who typed them in correctly - lots of times it didn't work correctly and people would attempt to come back into the US a second time and then get tossed out because they had "overstayed" their previous visa. A number of friends have been through this insanity.
Now days the US does this electronically some how, it seems more reliable (hopefully) - but is still completely out of the control of the traveler and it still leaves one without a receipt, a stamp in their passport, indicating they have left correctly under the terms of their visa
The real problem is the enormous numbers of false positives and the results on the unwitting victims