I'm currently a college student, so my work ethic is a little poor. Procrastination and "seeming busy" is standard fare for my day. It's far too easy for me to get distracted by checking Facebook, Twitter, or even tangential data sheets.
Yet, despite my bad habits, the environment at my job forced me to get down and churn through code. Some of my officemates could fit the salaryman stereotype[1], but all of them posessed a capability for relentless focus. I initially tried to settle in by "shooting the breeze" and making smalltalk, but they seemed to prefer communicating through their work: some code, but more importantly, well-done demos.
In the span of those 3 months, while I always brought headphones with me, I never ended up using them: the silence of the office carried a note of tension, the sound of concentration. Listening to this proved to make me more productive than I'd normally be, if I were listening to (even quiet) music.
I came in expecting to be maybe 20% efficient, as the OP mentions: a few minutes here, a half hour there. At the end, it was nearer to 75-80%: instead of procrastinating, I set goals for myself to get things done, because that was really the best way to get through to my neighbors.
While I don't think that this sort of pressure cooker environment is well-suited for all people, I think it speaks volumes to how positive peer pressure, in more ways than one, can force people to shape up. I'm not sure I would've survived for a 6 months or a year, but it very quickly eliminated my excuses. If everyone around you is working their best, it's hard not to get dragged along.