public long elapsedTimeMillis(){
  if (this.stopTime == 0) {
    return System.currentTimeMillis() - this.startTime;
  }
 else {
    return this.stopTime - this.startTime;
  }
}

public long elapsedTimeMillis ( ) { if ( this . stopTime == 0 ) { return System . currentTimeMillis ( ) - this . startTime ; } else { return this . stopTime - this . startTime ; } }
returns the elapsed time in millis since starting . value is final once stopped .
