Back in high school, I stuggled to stay awake in 99% of my class meetings in chemistry. I didn't find the material boring, but every time 5th period came around, I was just trying to keep my head off my desk or falling out of my chair. I was fine the rest of the day, so it wasn't lack of sleep.