5 #include <boost/test/unit_test.hpp> 12 using namespace armnn;
20 BOOST_CHECK_EQUAL(wallClockTimer.
GetName(),
"WallClockTimer");
23 wallClockTimer.
Start();
26 std::this_thread::sleep_for(std::chrono::microseconds(10));
29 wallClockTimer.
Stop();
34 BOOST_CHECK_GE(wallClockTimer.
GetMeasurements().front().m_Value, std::chrono::microseconds(10).count());
41 BOOST_CHECK_EQUAL(wallClockTimer.
GetName(),
"WallClockTimer");
44 wallClockTimer.
Start();
47 std::this_thread::sleep_for(std::chrono::nanoseconds(500));
50 wallClockTimer.
Stop();
56 std::chrono::duration_cast<std::chrono::duration<double, std::micro>>(std::chrono::nanoseconds(500));
59 BOOST_CHECK_GE(wallClockTimer.
GetMeasurements().front().m_Value, delta.count());
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
static const std::string WALL_CLOCK_TIME
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
std::vector< Measurement > GetMeasurements() const override
const char * GetName() const override