On my PC, I save 50% CPU (1 % vs 52%) if I move the "sleep 1" as the first statement in the "while(1){" loop, with very minimal(un-noticable for practical purposes) loss in responsiveness.
"Income tax returns are the most imaginative fiction being written today." --
Herman Wouk