mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-08 22:37:28 +05:00
clock() reports wrong times, use WallTime() instead
This commit is contained in:
parent
9ba75145c0
commit
36ada6f90c
@ -64,15 +64,15 @@ namespace netgen
|
|||||||
(*testout) << "Error !!! " << ch << endl << flush;
|
(*testout) << "Error !!! " << ch << endl << flush;
|
||||||
}
|
}
|
||||||
|
|
||||||
static clock_t starttimea;
|
static double starttimea;
|
||||||
void ResetTime ()
|
void ResetTime ()
|
||||||
{
|
{
|
||||||
starttimea = clock();
|
starttimea = WallTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
double GetTime ()
|
double GetTime ()
|
||||||
{
|
{
|
||||||
return double(clock() - starttimea) / CLOCKS_PER_SEC;
|
return WallTime() - starttimea;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user