The longest time I've ever rode non-stop is perhaps 4h. It was across a highway road of around 50 miles, I was not riding alone and going at a moderate speed with some sprinting moments. After the 4h, we stopped to drink water and to relieve the kidneys.