search for: lastexec

Displaying 1 result from an estimated 1 matches for "lastexec".

Did you mean: last_sec
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
...g. I wondered if anyone would look over the code, maybe it will make its way into the official release. var PeriodicalExecuter = Class.create({ initialize: function(callback, frequency) { this.callback = callback; this.frequency = frequency; this.currentlyExecuting = false; this.lastExec = this.now(); this.paused = false; this.pausedAt = 0; this.accumTimePaused = 0; this.registerCallback(); }, registerCallback: function() { this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); }, execute: function() { this.callback(this);...