A good rule of thumb is every couple of hours take fifteen minutes off. Naps are also very helpful, short naps. Even a ten or fifteen minute nap in the middle of the day can be the equivalent of an hour and a half of extra sleep the night before, and it can raise your effective IQ by ten points.
Talks at Google (Oct 28, 2014)