@@ -0,0 +1,539 @@
+package eco.game;%0A%0A/**%0A * A class that keeps track of how fast the program is running. Call%0A * %3Ci%3Etick()%3C/i%3E once every frame to update correctly.%0A * %0A * @author phil%0A * %0A */%0A%0Apublic class FPSCounter %7B%0A%0A%09private static int totalFrames = 0;%0A%09private static int FPS = 0;%0A%09private static long delta = 0;%0A%0A%09public static void tick() %7B%0A%09%09totalFrames++;%0A%09%09if (System.currentTimeMillis() - delta %3E= 1000) %7B%0A%09%09%09FPS = totalFrames;%0A%09%09%09totalFrames = 0;%0A%09%09%09delta = System.currentTimeMillis();%0A%09%09%7D%0A%09%7D%0A%0A%09public static int getFPS() %7B%0A%09%09return FPS;%0A%09%7D%0A%0A%7D%0A

Create FPSCounter.java