Lessons learnt from research into the body’s internal clock could be key to unlocking blissful slumber.