Skip to content

Commit 8c45c4a

Browse files
committed
Update MatrixTestUtilities.h
1 parent 5841138 commit 8c45c4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Testing/Utils/MatrixTestUtilities.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
#define TESTING_UTIL_MATRIXTESTUTILITIES 1
3131

3232
#include <gtest/gtest.h>
33-
#include <boost/test/floating_point_comparison.hpp>
33+
#include <boost/test/tools/floating_point_comparison.hpp>
3434
#include <boost/tuple/tuple.hpp>
35-
#include <boost/timer.hpp>
35+
#include <boost/timer/timer.hpp>
3636
#include <boost/assign.hpp>
3737
#include <boost/filesystem.hpp>
3838
#include <stdexcept>
@@ -214,17 +214,17 @@ struct SCISHARE ScopedTimer
214214
explicit ScopedTimer(const std::string& name) : name_(name)
215215
{
216216
std::cout << "Starting timer " << name_ << std::endl;
217-
t_.restart();
217+
//t_.start();
218218
}
219219

220220
~ScopedTimer()
221221
{
222-
double elapsed = t_.elapsed();
222+
auto elapsed = t_.elapsed().wall;
223223
std::cout << "Timer " << name_ << " stopped at " << elapsed << " seconds." << std::endl;
224224
}
225225

226226
std::string name_;
227-
boost::timer t_;
227+
boost::timer::cpu_timer t_;
228228
};
229229

230230
// TODO: move to Field utils file

0 commit comments

Comments
 (0)