package ee.ellytr.autoclick.tps;

public class TPSTracker {

    private static double lastTick = System.nanoTime();
    private static double tps = 0;

    public static void tick() {
        try {
            tps = 1 / ((System.nanoTime() - lastTick) / 1000000000.0);
        } catch (ArithmeticException e) {
        }
        lastTick = System.nanoTime();
    }

    public static double getTPS() {
        return tps;
    }

}

@@ -91,33 +91,18 @@
 tTick = 
-System.nanoTime()
+-1
 ;%0A    pr
@@ -175,11 +175,27 @@
     
-try
+if (lastTick != -1)
  %7B%0A 
@@ -268,50 +268,8 @@
 0);%0A
-        %7D catch (ArithmeticException e) %7B%0A
     

Fix a needless ArithmeticException with TPS tracking