I woke up for my class at 8:30 in the morning.
When I got there, I took a nap.
I hadn't gotten enough sleep the night before, but I still went to class.
I had gotten enough sleep the night before, and I went to class refreshed.