private boolean Update() { synchronized (this.lock) { final long tim = WebAuctionPlus.getCurrentMilli(); final long sinceLast = tim - this.lastUpdate; // update no more than every 5 seconds if (this.lastUpdate == -1 || sinceLast >= 5000) { this.lastUpdate = tim; doUpdate(); return true; } } return false; }