Tim's history class was first thing in the morning.
Tim failed the final exam.
Tim stayed up all night and slept through his morning alarms, so he didn't wake up in time for class.
Tim slept all night and slept through his morning alarms so he didn't wake up in them for class.