private void computeDuration(){
  duration=System.currentTimeMillis() - start;
  total_duration+=duration;
}

private void computeDuration ( ) { duration = System . currentTimeMillis ( ) - start ; total_duration += duration ; }
computes the duration by subtracting start to the current time in milliseconds
