Ilene Rosen of the Perelman School of Medicine explained how melatonin works. “It may take several hours,” she said, “which is what I think is the misconception about how melatonin is used.”
https://www.nytimes.com/2022/01/11/well/mind/melatonin-sleep-insomnia.html The New York Times