Do not take temazepam if you will be unable to remain asleep for 7 to 8 hours after taking the medication. If you get up too soon after taking temazepam, you may experience memory problems. Your sleep problems should improve within 7 to 10 days after you start taking temazepam.