mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
Use new timers
This commit is contained in:
parent
b65d63cf11
commit
9f0edf1741
@ -15,6 +15,7 @@
|
||||
|
||||
#include "array.hpp"
|
||||
#include "paje_trace.hpp"
|
||||
#include "profiler.hpp"
|
||||
|
||||
namespace ngcore
|
||||
{
|
||||
@ -1059,6 +1060,7 @@ public:
|
||||
template <typename Tmask>
|
||||
int ComputeColoring( FlatArray<int> colors, size_t ndofs, Tmask const & getDofs)
|
||||
{
|
||||
static Timer timer("ComputeColoring - "+Demangle(typeid(Tmask).name())); RegionTimer rt(timer);
|
||||
static_assert(sizeof(unsigned int)==4, "Adapt type of mask array");
|
||||
auto n = colors.Size();
|
||||
|
||||
|
@ -177,8 +177,8 @@ namespace netgen
|
||||
else
|
||||
PrintMessage (3, "Edgeswapping, topological");
|
||||
|
||||
static int timerstart = NgProfiler::CreateTimer ("EdgeSwapping 2D start");
|
||||
NgProfiler::StartTimer (timerstart);
|
||||
static Timer timerstart("EdgeSwapping 2D start");
|
||||
timerstart.Start();
|
||||
|
||||
Array<SurfaceElementIndex> seia;
|
||||
bool mixed = false;
|
||||
@ -310,7 +310,7 @@ namespace netgen
|
||||
for (SurfaceElementIndex sei : seia)
|
||||
swapped[sei] = false;
|
||||
|
||||
NgProfiler::StopTimer (timerstart);
|
||||
timerstart.Stop();
|
||||
|
||||
|
||||
|
||||
@ -377,15 +377,15 @@ namespace netgen
|
||||
}
|
||||
|
||||
|
||||
static int timer = NgProfiler::CreateTimer ("Combineimprove 2D");
|
||||
NgProfiler::RegionTimer reg (timer);
|
||||
static Timer timer ("Combineimprove 2D");
|
||||
RegionTimer reg (timer);
|
||||
|
||||
static int timerstart = NgProfiler::CreateTimer ("Combineimprove 2D start");
|
||||
NgProfiler::StartTimer (timerstart);
|
||||
static Timer timerstart ("Combineimprove 2D start");
|
||||
timerstart.Start();
|
||||
|
||||
|
||||
static int timerstart1 = NgProfiler::CreateTimer ("Combineimprove 2D start1");
|
||||
NgProfiler::StartTimer (timerstart1);
|
||||
static Timer timerstart1 ("Combineimprove 2D start1");
|
||||
timerstart1.Start();
|
||||
|
||||
|
||||
Array<SurfaceElementIndex> seia;
|
||||
@ -416,7 +416,7 @@ namespace netgen
|
||||
Array<bool,PointIndex> fixed(np);
|
||||
fixed = false;
|
||||
|
||||
NgProfiler::StopTimer (timerstart1);
|
||||
timerstart1.Stop();
|
||||
|
||||
/*
|
||||
for (SegmentIndex si = 0; si < mesh.GetNSeg(); si++)
|
||||
@ -468,7 +468,7 @@ namespace netgen
|
||||
}
|
||||
}
|
||||
|
||||
NgProfiler::StopTimer (timerstart);
|
||||
timerstart.Stop();
|
||||
|
||||
for (int i = 0; i < seia.Size(); i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user