public long getTotalElapsedTimeSecs() {
        long elapsed;
        if (running) {
            elapsed = ((System.currentTimeMillis() - startTime) );
            elapsed +=totalTime;
            elapsed = elapsed / 1000;
        }
        else {
            elapsed = (totalTime / 1000);
        }
        return elapsed;
    }