X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2Fchrono.cxx;h=87689c14463f88379031052dfa86483965c58697;hp=0fae4a48d26862d8c95c4b36812fbc36370630de;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hpb=b0a908c0d20341651771d0249fb10882f54b2aad diff --git a/src/SMDS/chrono.cxx b/src/SMDS/chrono.cxx index 0fae4a48d..87689c144 100644 --- a/src/SMDS/chrono.cxx +++ b/src/SMDS/chrono.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2006-2022 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 @@ -21,6 +21,7 @@ #include "utilities.h" using namespace std; +using namespace SMDS; cntStruct* counters::_ctrs = 0; int counters::_nbChrono = 0; @@ -59,20 +60,20 @@ void counters::stats() } } -chrono::chrono(int i) : - _ctr(i), _run(true) +salome_chrono::salome_chrono(int i) : + _run(true), _ctr(i) { //MESSAGE("chrono::chrono " << _ctr << " " << _run); _start = clock(); } -chrono::~chrono() +salome_chrono::~salome_chrono() { if (_run) stop(); } -void chrono::stop() +void salome_chrono::stop() { //MESSAGE("chrono::stop " << _ctr << " " << _run); if (_run)