What does sleep "efficiency" mean?

I see a Sleep Efficiency percentage in my data, but I’m not sure what it’s measuring. How does that work?

Sleep Efficiency = time asleep versus time in bed. It tells you how well you used your sleep time—higher efficiency means less time awake during the night!