Exemple #1
0
  private long[] executeOriginal(FTE newFTE, ArrayList<FTE> fteList) {
    long startTime;
    long endTime;
    long[] execResult = new long[2];

    Original original = new Original();

    startTime = System.nanoTime();
    LinkedList<AlgorithmResult> interactionResult = original.interactionDetection(newFTE, fteList);
    endTime = System.nanoTime();

    execResult[INDEX_DURATION] = endTime - startTime;
    execResult[INDEX_INTERACTIONS] = interactionResult.size();

    return execResult;
  }