mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
profiler
This commit is contained in:
parent
d71b1e6844
commit
5dde1907d6
@ -114,5 +114,14 @@ namespace netgen
|
||||
}
|
||||
|
||||
|
||||
void NgProfiler :: ClearTimers ()
|
||||
{
|
||||
for (int i = 0; i < SIZE; i++)
|
||||
{
|
||||
tottimes[i] = 0;
|
||||
counts[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
NgProfiler prof;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
NgProfiler();
|
||||
~NgProfiler();
|
||||
static int CreateTimer (const string & name);
|
||||
|
||||
|
||||
static void StartTimer (int nr)
|
||||
{
|
||||
starttimes[nr] = clock(); counts[nr]++;
|
||||
@ -51,6 +51,8 @@ public:
|
||||
//static void Print (ostream & ost);
|
||||
static void Print (FILE * prof);
|
||||
|
||||
static void ClearTimers ();
|
||||
|
||||
class RegionTimer
|
||||
{
|
||||
int nr;
|
||||
|
Loading…
Reference in New Issue
Block a user