We compared bedtime administration of zolpidem-ER 12.5 mg ( 6 - to 8-h duration of action ) , middle-of-the-night administration of zaleplon 10 mg ( 3 - to 4-h duration of action ) , and placebo to examine the effect of different durations of hypnotic drug exposure on memory consolidation during sleep .