5 #include <doctest/doctest.h> 12 using namespace armnn;
16 TEST_CASE(
"WallClockTimerInMicroseconds")
20 CHECK((std::string(wallClockTimer.
GetName()) == std::string(
"WallClockTimer")));
23 wallClockTimer.
Start();
26 std::this_thread::sleep_for(std::chrono::microseconds(10));
29 wallClockTimer.
Stop();
34 CHECK_GE(wallClockTimer.
GetMeasurements().front().m_Value, std::chrono::microseconds(10).count());
37 TEST_CASE(
"WallClockTimerInNanoseconds")
41 CHECK((std::string(wallClockTimer.
GetName()) == std::string(
"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 CHECK_GE(wallClockTimer.
GetMeasurements().front().m_Value, delta.count());
TEST_SUITE("TestConstTensorLayerVisitor")
Copyright (c) 2021 ARM Limited and Contributors.
const char * GetName() const override
static const std::string WALL_CLOCK_TIME
std::vector< Measurement > GetMeasurements() const override