@@ -0,0 +1,1344 @@
+package helpers;%0A%0Apublic class Chrono %7B%0A%0A    private static long startTime;%0A    private static long startPause;%0A    private static long totalPause;%0A%0A    public Chrono() %7B%0A        reinitialization();%0A    %7D%0A%0A    public void reinitialization() %7B%0A        startTime  = 0;%0A        startPause = 0;%0A        totalPause = 0;%0A    %7D%0A%0A    public void start() %7B%0A        reinitialization();%0A        startTime = System.currentTimeMillis();%0A    %7D%0A%0A    public void resume() %7B%0A        if (startTime == 0 %7C%7C startPause == 0) %7B%0A            /* Has not be started */%0A            return;%0A        %7D%0A%0A        totalPause += System.currentTimeMillis() - startPause;%0A    %7D%0A%0A    public void pause() %7B%0A        if (startTime == 0) %7B%0A            /* Has not be started */%0A            return;%0A        %7D%0A%0A        startPause = System.currentTimeMillis();%0A    %7D%0A%0A    public void stop() %7B%0A        reinitialization();%0A    %7D%0A%0A    public long timeEllapsed() %7B%0A        return System.currentTimeMillis() - startTime - totalPause;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        long realTime = timeEllapsed();%0A%0A        int minutes      = (int) ((realTime / 1000) / 60);%0A        int seconds      = (int) ((realTime / 1000) %25 60);%0A        int milliseconds = (int) ((realTime / 100)  %25 10);%0A%0A        return String.format(%22%2502d:%2502d:%25d%22, minutes, seconds, milliseconds);%0A    %7D%0A%0A%7D%0A

create a way to have a chrono for the game.