X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2Fchrono.cxx;h=a2ca53b27c5c10804263a6ebddccc3f3e427f6c4;hp=caa6031f404cba316ac1d7653271020a00cb00a4;hb=HEAD;hpb=7a65c9fad427b1ccba6b9ccae612296e5092a324 diff --git a/src/SMDS/chrono.cxx b/src/SMDS/chrono.cxx index caa6031f4..6b36f0f4a 100644 --- a/src/SMDS/chrono.cxx +++ b/src/SMDS/chrono.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2006-2024 CEA, EDF, 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)