public long time(int i){
  long offset=0;
  for (int j=indices.length - 1; j >= 0; j--) {
    if (i >= indices[j]) {
      offset=offsets[j];
      break;
    }
  }
  return offset + rtimes[i];
}

public long time ( int i ) { long offset = 0 ; for ( int j = indices . length - 1 ; j >= 0 ; j -- ) { if ( i >= indices [ j ] ) { offset = offsets [ j ] ; break ; } } return offset + rtimes [ i ] ; }
returns the time stamp for index i
