Subjects under-went overnight polysomnography ( PSG ) when the percentage of total sleep time ( % TST ) spent at each sleep stage was recorded and an oral glucose tolerance test together was performed the next morning .