8 #ifndef TIMER_UTIL_TEST_HPP_
9 #define TIMER_UTIL_TEST_HPP_
13 BOOST_AUTO_TEST_SUITE( timer_test )
15 BOOST_AUTO_TEST_CASE( timer_use )
26 BOOST_REQUIRE_CLOSE(t.
getwct(),1.0,10.0);
44 BOOST_REQUIRE_CLOSE(t.
getwct(),2.0,10.0);
49 BOOST_REQUIRE_CLOSE(t.
getwct(),0.0,10.0);
55 BOOST_AUTO_TEST_SUITE_END()
double getwct()
Return the elapsed real time.
double getcputime()
Return the cpu time.
void start()
Start the timer.
void reset()
Reset the timer.
Class for cpu time benchmarking.
void stop()
Stop the timer.