public long reset(){
  long nowNS=System.nanoTime();
  try {
    return TimeValue.nsecToMSec(nowNS - startNS);
  }
  finally {
    startNS=nowNS;
  }
}

public long reset ( ) { long nowNS = System . nanoTime ( ) ; try { return TimeValue . nsecToMSec ( nowNS - startNS ) ; } finally { startNS = nowNS ; } }
resets and returns elapsed time in milliseconds .
