public void updateTimer() {
      long var1 = System.currentTimeMillis();
      long var3 = var1 - this.lastSyncSysClock;
      long var5 = System.nanoTime() / 1000000L;
      double var7 = (double)var5 / 1000.0D;
      if(var3 > 1000L) {
         this.lastHRTime = var7;
      } else if(var3 < 0L) {
         this.lastHRTime = var7;
      } else {
         this.field_28132_i += var3;
         if(this.field_28132_i > 1000L) {
            long var9 = var5 - this.lastSyncHRClock;
            double var11 = (double)this.field_28132_i / (double)var9;
            this.timeSyncAdjustment += (var11 - this.timeSyncAdjustment) * 0.20000000298023224D;
            this.lastSyncHRClock = var5;
            this.field_28132_i = 0L;
         }

         if(this.field_28132_i < 0L) {
            this.lastSyncHRClock = var5;
         }
      }

      this.lastSyncSysClock = var1;
      double var13 = (var7 - this.lastHRTime) * this.timeSyncAdjustment;
      this.lastHRTime = var7;
      if(var13 < 0.0D) {
         var13 = 0.0D;
      }

      if(var13 > 1.0D) {
         var13 = 1.0D;
      }

      this.elapsedPartialTicks = (float)((double)this.elapsedPartialTicks + var13 * (double)this.timerSpeed * (double)this.ticksPerSecond);
      this.elapsedTicks = (int)this.elapsedPartialTicks;
      this.elapsedPartialTicks -= (float)this.elapsedTicks;
      if(this.elapsedTicks > 10) {
         this.elapsedTicks = 10;
      }

      this.renderPartialTicks = this.elapsedPartialTicks;
   }