Dude, you will be fine.
If you think you need something to keep you awake, then take it when you need it.
But... when you get a chance to sleep, take it.
BTW, if you decide to use ephedrine, you don't have to take the full dose. Break the caps apart and mix them in Crystal light, or if they are tabs, just break them.