diff --git a/libsrc/meshing/global.cpp b/libsrc/meshing/global.cpp index 883b7c8b..4a01c4dc 100644 --- a/libsrc/meshing/global.cpp +++ b/libsrc/meshing/global.cpp @@ -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; }