I heard that staying before your monitor too long is bad for your health. So I bought this timer and keep it with me all the time when doing homework, coding, writing or just playing games.
I set the alarm every 35 minutes, so whenever it rings, I would stop doing whatever I do with my laptop...