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