A multiple sleep latency test (MSLT) is an objective way to measure sleep quality. It helps diagnose narcolepsy and insomnia.