Ejemplo n.º 1
0
  public void run() {
    for (int i = 0; i < m; i++) {

      noncritical();
      tree.traverseUpFrom(node, i);
      critical();
      Start.out.print(tree);
      long now = System.currentTimeMillis();
      Start.out.println("UnixTime=" + (now - Start.start_time));
      Start.runtimes =
          Start.runtimes
              + "p["
              + (node - tree.size() + 1)
              + "-"
              + i
              + "]:"
              + (now - Start.start_time)
              + "\n";
      tree.traverseDownto(node / 2);
    }
  }