I have written a test code using timer delegates. About 30 methods are delegated and will be called on the expiry of a timer. This causes the cpu load to spike up every 2 seconds. While trying to optimize this code, i added a "sleep(29)" just before delegating it. The result shouldn't be any different as the timeout gets shifted by 29ms for all the timeouts. But this has cut down the cpu load by 50%. I am quite happy with the result but couldn't find any logical explanation for the reduction in cpu load.Can someone please explain why this is happening?
Thanx in advance...