I take a bus to the library and spend some time there, interspersed with many breaks which involve walking to a nearby tea house. Taking a bus outsources the attention-drain of driving while still being conducive to the trance-like free-floating state of mind in which one can feed the thoughts to the unknown and allow the ideas to come to you.
Most of the times that I have sat down at the same desk for 2 hours, I have regretted it. It's sub-optimal unless you are literally just typing in what is already known.
Unless you're in flow. That is the only time I sit for any extended period - when I am so engrossed in what I am doing that I don't notice the time. Normally I get up and walk around every ten to twenty minutes, I'm a little hyperactive and usually need to do something active fairly frequently.
And unfortunately, libraries don't work for me, I find other people much too distracting.
Most of the times that I have sat down at the same desk for 2 hours, I have regretted it. It's sub-optimal unless you are literally just typing in what is already known.