Just 15 minutes of movement is all it takes.
A “brief bout of moderate intensity exercise can improve the efficiency of certain cognitive processes through increases in feelings of energy,” they write in Acta Psychologica (paywall).
https://getpocket.com/explore/item/what-a-brief-jog-can-do-for-your-brain