The onset of action of different types of sleeping pills varies slightly, and the duration of action also varies. For example, the short-acting sleeping pills commonly used in clinical practice have a relatively short half-life, and their onset of action is relatively fast, commonly used like zolpidem tartrate, which takes about 10-20 minutes to take effect, and can achieve a sedative-hypnotic effect. Commonly used some long-acting half-life drugs, such as diazepam, eszopiclone, alprazolam, clonazepam, lorazepam, dexrazoxane, these drugs take about 20-30 minutes to take the effect of sedation and sleep. The half-life of these drugs is relatively long, and the duration of drug maintenance is about 4-6 hours. Therefore, if the patient has a short total sleep time and wakes up easily in the middle of the night, he can take these long half-life sleeping pills.