Hi, welcome to the forum, you seem to have insomnia but a milder form. In young to middle aged individuals, sleep maintenance problems tend to be associated with stress, anxiety, or circadian rhythm sleep disorders.
They may also be associated with sleep disorders (e.g., sleep apnea, periodic limb movements), medical conditions that cause pain, psychiatric diseases (e.g., anxiety, depression), or the use or withdrawal of alcohol, nicotine, or other substances.
The investigations which will help to diagnose the type and cause for insomnia are Polysomnography, Multiple sleep latency test and Actigraphy .
The therapy for this condition includes retaining of normal circadian rhythm by non-pharmacological therapy which includes; Photo therapy, maintenance of sleep hygiene. You need to go for morning exercises and work out which will make you fresh and active all day and tiredness at the end of day will help you to induce sleep naturally.
Pharmacological therapy includes short course of appropriate sedatives and Hypnotics against prescription. Non-benzodiazepines are effective in delayed onset sleep disorder and help to initiate the sleep.
As you are not having sleep in night you sleep in classroom. Once your night sleep cycle is recovered you will overcome with this problem. You need to avoid stress, anxiety and share your feelings with someone close.
I suggest you to consult physician. Take car and regards
Sounds like time to see a DR and tell him the truth with what is going on, only way to take test or blood work and find out what is causing this since there are many causes of this, and MUST rule out medical problems. Nightmares can wake u up also if you are having them nightly,,SEEK help to assure no medical problems@@@