-// Copyright (C) 2006-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2006-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <iostream>
#include <ctime>
+namespace SMDS
+{
typedef struct acnt
{
char* _ctrNames;
int _ctr;
clock_t _start, _end;
};
-
+}
#ifdef CHRONODEF
-#define CHRONO(i) counters::_ctrs[i]._ctrNames = (char *)__FILE__; \
+#define CHRONO(i)
+ using namespace SMDS; \
+ counters::_ctrs[i]._ctrNames = (char *)__FILE__; \
counters::_ctrs[i]._ctrLines = __LINE__; \
salome_chrono aChrono##i(i);
#else // CHRONODEF
-#define CHRONO(i)
+#define CHRONO(i) using namespace SMDS;
#define CHRONOSTOP(i)
#endif // CHRONODEF