yui-throttle Module
Throttles a call to a method based on the time between calls. This method is attached
to the Y object and is documented there.
var fn = Y.throttle(function() {
    counter++;
});
for (i; i< 35000; i++) {
    out++;
    fn();
}

yui-throttle/js/throttle.js:1
        Throttles a call to a method based on the time between calls. This method is attached
to the Y object and is documented there.
var fn = Y.throttle(function() {
    counter++;
});
for (i; i< 35000; i++) {
    out++;
    fn();
}