package org.runite.client;

final class Class129_Sub2 extends Class129 {

   private long aLong2698 = System.nanoTime();


   final void method1770() {
      this.aLong2698 = System.nanoTime();
   }

   final int method1767(int var1, int var2, int var3) {
      if(var1 == -1) {
         long var4 = 1000000L * (long)var2;
         long var6 = this.aLong2698 - System.nanoTime();
         if(var6 < var4) {
            var6 = var4;
         }

         TimeUtils.sleep(var6 / 1000000L);
         int var10 = 0;

         long var8;
         for(var8 = System.nanoTime(); var10 < 10 && (var10 < 1 || this.aLong2698 < var8); this.aLong2698 += 1000000L * (long)var3) {
            ++var10;
         }

         if(var8 > this.aLong2698) {
            this.aLong2698 = var8;
         }

         return var10;
      } else {
         return 37;
      }
   }

}
