Bob,
As a rough guide:
Things like gatorade, or gummy bears (nearly pure glucose) hit the bloodstream in 15-20 minutes
Simple carbs are typically digested in less than 1 hour. In the cheeseburger context, the refined white flour in the bun would be in this category
Complex carbs are digested in 3-4 hours.
Fat takes 5-6 hours.
Protein takes 8-10 hours (although you should probably be thinking protein in terms of the raw materials for repairs to your body, rather than as fuel).
(In reality, food is digested progressively, so you will get some of the benefit in the first couple of hours).
But food that is digested too quickly (glucose and simple carbs) spikes the blood sugars, causing the body to flood insulin, then leaving the you with a low trough afterwards.
Complex carbs are probably the ideal fuel for hikers – carbs are the body's preferred fuel, and the slow release provides energy throughout the day.
But the weight factor (fat is 9 calories per gram, while protein and carbs are only 4) pushes most backers towards more fat. However, fat can only be converted to energy slowly (it needs to be processed by the liver as well as the gut), so you need a mix of carbs in there as well to burn fat effectively.
The body stores about 2000 calories in usable energy – hikers will easily burn about 4000 (2000-2500 through hiking, and 1500-2000 through metabolism). And a long day with substantial elevation gain with a heavy pack could push the total burn to 5000-6000. So most of the fuel for your hike will come from this 'tank' of energy, but you need to keep 'topping off' the tank throughout the day to avoid running dry.

