When it comes to timing on when to eat, one simple rule is critical for athletes:
The sooner the better after hard workouts!
When a muscle is engorged with blood after a hard workout it's a great time to float some of the raw material that we need to replenish and repair the muscle and to reload energy stores into the blood stream. Right after activity is when the muscle is very metabolically active and uptake of these nutrients is at its most efficient. It's also a time when you can be your most liberal with your sugar, starch and fat calories (non-protein calories) that we lean on so heavily to fuel activity.
Let's take it step by step: