It's both, but the timing is used to smooth out the short term spikes and fuel is used over longer periods of time. I believe this is because idle speed reacts more quickly to timing changes. With it idling, look at your timing and you should see it moving up and down quite a bit.