mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +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;
|
||||
}
|
||||
|
||||
static clock_t starttimea;
|
||||
static double starttimea;
|
||||
void ResetTime ()
|
||||
{
|
||||
starttimea = clock();
|
||||
starttimea = WallTime();
|
||||
}
|
||||
|
||||
double GetTime ()
|
||||
{
|
||||
return double(clock() - starttimea) / CLOCKS_PER_SEC;
|
||||
return WallTime() - starttimea;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user