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