If you meditate for 20 minutes, just before you go to sleep, then your mind will have several hours of undisturbed time during which it can stay in that state. If you meditate before you sleep, leave a comment. Let us know your experience.
The mind keeps on functioning even when we are asleep. It conjures up dreams. Meditation allows the mind to rest and rejuvenates the intellect.