inline GetTimeStamp

This commit is contained in:
Joachim Schöberl 2017-04-11 10:45:11 +02:00
parent 4382fc1168
commit 0074d8b407
2 changed files with 16 additions and 2 deletions

View File

@ -88,7 +88,8 @@ namespace netgen
DebugParameters debugparam; DebugParameters debugparam;
bool verbose = 0; bool verbose = 0;
int timestamp = 0; size_t timestamp = 0;
/*
int GetTimeStamp() int GetTimeStamp()
{ {
return timestamp; return timestamp;
@ -99,4 +100,5 @@ namespace netgen
timestamp++; timestamp++;
return timestamp; return timestamp;
} }
*/
} }

View File

@ -54,10 +54,22 @@ namespace netgen
enum OPTIMIZEGOAL { OPT_QUALITY, OPT_CONFORM, OPT_REST, OPT_WORSTCASE, OPT_LEGAL }; enum OPTIMIZEGOAL { OPT_QUALITY, OPT_CONFORM, OPT_REST, OPT_WORSTCASE, OPT_LEGAL };
extern size_t timestamp;
inline size_t GetTimeStamp()
{
return timestamp;
}
inline size_t NextTimeStamp()
{
timestamp++;
return timestamp;
}
/*
extern DLL_HEADER int GetTimeStamp(); extern DLL_HEADER int GetTimeStamp();
extern DLL_HEADER int NextTimeStamp(); extern DLL_HEADER int NextTimeStamp();
*/
class PointGeomInfo class PointGeomInfo
{ {
public: public: