remove timers

This commit is contained in:
Joachim Schoeberl 2013-02-03 14:37:51 +00:00
parent 5db60383e5
commit f2cb1a75d4

View File

@ -163,22 +163,11 @@ namespace netgen
if (buildedges)
{
static int timer1 = NgProfiler::CreateTimer ("topology::buildedges");
static int t1a = NgProfiler::CreateTimer ("topology - edges 1");
static int t1b = NgProfiler::CreateTimer ("topology - edges 2");
static int t1b1 = NgProfiler::CreateTimer ("topology - edges 21");
static int t1b11 = NgProfiler::CreateTimer ("topology - edges 211");
static int t1b2 = NgProfiler::CreateTimer ("topology - edges 22");
static int t1b3 = NgProfiler::CreateTimer ("topology - edges 23");
static int t1c = NgProfiler::CreateTimer ("topology - edges 3");
NgProfiler::RegionTimer reg1 (timer1);
if (id == 0)
PrintMessage (5, "Update edges ");
NgProfiler::StartTimer (t1a);
edges.SetSize(ne);
surfedges.SetSize(nse);
segedges.SetSize(nseg);
@ -220,9 +209,6 @@ namespace netgen
ned = edge2vert.Size();
NgProfiler::StopTimer (t1a);
NgProfiler::StartTimer (t1b);
for (int i = PointIndex::BASE; i < nv+PointIndex::BASE; i++)
{
vertex2.SetSize (0);
@ -245,8 +231,6 @@ namespace netgen
}
}
NgProfiler::StartTimer (t1b1);
FlatArray<ElementIndex> v2els = (*vert2element)[i];
for (int j = 0; j < v2els.Size(); j++)
{
@ -267,8 +251,6 @@ namespace netgen
}
}
NgProfiler::StopTimer (t1b1);
for (int j = 0; j < (*vert2surfelement)[i].Size(); j++)
{
int elnr = (*vert2surfelement)[i][j];
@ -307,8 +289,6 @@ namespace netgen
}
}
NgProfiler::StartTimer (t1b2);
QuickSort (vertex2);
for (int j = 0; j < vertex2.Size(); j++)
{
@ -316,9 +296,6 @@ namespace netgen
edge2vert.Append (INDEX_2 (i, vertex2[j]));
}
NgProfiler::StopTimer (t1b2);
NgProfiler::StartTimer (t1b3);
for (int j = 0; j < (*vert2element)[i].Size(); j++)
{
@ -382,10 +359,7 @@ namespace netgen
if (edgedir) edgenum *= -1;
segedges.Elem(elnr) = edgenum;
}
NgProfiler::StopTimer (t1b3);
}
NgProfiler::StopTimer (t1b);
}