Dozing is defined as the state in which one can answer questions which do not require logical analysis, and which one can remember later when reminded: Pesachim 120b; Megillah 18b
How long one can survive without falling asleep: Succah 53a; Nedarim 15a