# Tree Timing Question

**URL:** https://discourse.vtk.org/t/tree-timing-question/13327
**Category:** Development
**Created:** [February 16, 2024, 9:51pm UTC](https://discourse.vtk.org/t/tree-timing-question/13327 "2024-02-16T21:51:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rafael\_Scatena](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rafael_scatena/32/7820_2.png) [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)
#### Post date: [February 16, 2024, 9:51pm UTC](https://discourse.vtk.org/t/tree-timing-question/13327/1 "2024-02-16T21:51:01Z")

</div>

Hello,

I am having a little trouble to understant the timing test. Because when the function timme(insert tree)tree is called what is variable is the maxlevel, but in the output graph the x-axis is called max points per region. Seems Like two differnt variables are being reported.

Thank you,

Rafael

```
    double TimeOBBTree(vtkPolyData* polydata, int maxLevel, int numberOfTrials,
                 vtkMinimalStandardRandomSequence* rng)
  {
    vtkNew<vtkTimerLog> timer;
    timer->StartTimer();

// Create the tree
vtkNew<vtkOBBTree> obbTree;
obbTree->SetDataSet(polydata);
obbTree->AutomaticOff();
obbTree->SetMaxLevel(maxLevel);
obbTree->BuildLocator();

```
