@@ -0,0 +1,1002 @@
+public class StopWatch %7B%0A%0A    private long startTime = 0;%0A    private long stopTime = 0;%0A    private long pausedTime = 0;%0A    private boolean running = false;%0A%0A    public void start() %7B%0A        this.startTime = System.currentTimeMillis();%0A        pausedTime = 0;%0A        this.running = true;%0A    %7D%0A%0A    public void stop() %7B%0A        this.stopTime = System.currentTimeMillis();%0A        this.running = false;%0A    %7D%0A%0A    public void pause() %7B%0A        if(running) %7B%0A            pausedTime = System.currentTimeMillis();%0A            stop();%0A        %7D%0A    %7D%0A%0A    public void resume() %7B%0A        if(!running)%7B%0A            long duration = System.currentTimeMillis() - pausedTime;%0A            startTime += duration;%0A            this.running = true;%0A        %7D%0A    %7D%0A    public long getElapsedTime() %7B%0A        long elapsed;%0A        if (running) %7B%0A            elapsed = (System.currentTimeMillis() - startTime);%0A        %7D else %7B%0A            elapsed = (stopTime - startTime);%0A        %7D%0A        return elapsed;%0A    %7D%0A%7D%0A

Create StopWatch.java