The longer you stay up the more effective it will be, however it can be difficult to go to sleep easily if you are awake too much time. So you have to find a balance, most people stay from 20 minutes to an hour.