File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments