We did that in high school physics. Physics was last period and before swim practice. We'd put a pencil in our hands and dangle our hand off the edge of the desk. When you dropped your pencil it'd wake you up. Hopefully it'd wake you up so the team wouldn't skeak off an leave you sleeping in the physics lab.