if (stopTime == -1) { if (startTime == -1) { return 0; }
if(this.runningState == STATE_STOPPED || this.runningState == STATE_SUSPENDED) { return (this.stopTime - this.startTime); } else if(this.runningState == STATE_UNSTARTED) { return 0; } else if(this.runningState == STATE_RUNNING) {
    public long getTime() {        if (stopTime == -1) {            if (startTime == -1) {                return 0;            }            return (System.currentTimeMillis() - this.startTime);        }        return (this.stopTime - this.startTime);    }