There’s a word for that

chronopharmacology—the study of how medications and drugs interact with your biology.

From Smithsonian blogs

(Though I disagree with the story’s conclusions on the optimal time to drink your coffee. The analysis fails to take into account the psychological element for your serious java fiend. One staggers into the kitchen feeling blindly for the necessary accoutrements, knowing that Life Doesn’t Commence until that first scalding sip.)