diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
commit | 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 (patch) | |
tree | b0af08b5a0b74149fca422151127ac6310385399 /src/armnn/Instrument.hpp | |
parent | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 (diff) | |
download | armnn-0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7.tar.gz |
Creating gh-pages documentation for ArmNN
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnn/Instrument.hpp')
-rw-r--r-- | src/armnn/Instrument.hpp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/armnn/Instrument.hpp b/src/armnn/Instrument.hpp deleted file mode 100644 index 8dde2ecefa..0000000000 --- a/src/armnn/Instrument.hpp +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include <string> -#include <vector> - -namespace armnn -{ - -struct Measurement -{ - enum Unit - { - TIME_NS, - TIME_US, - TIME_MS, - }; - - inline static const char* ToString(Unit unit) - { - switch (unit) - { - case TIME_NS: return "ns"; - case TIME_US: return "us"; - case TIME_MS: return "ms"; - default: return ""; - } - } - - Measurement(const std::string& name, double value, Unit unit) - : m_Name(name) - , m_Value(value) - , m_Unit(unit) - {} - Measurement(const Measurement&) = default; - ~Measurement() = default; - - std::string m_Name; - double m_Value; - Unit m_Unit; - -private: - // please don't default construct, otherwise Units will be wrong - Measurement() = delete; -}; - -class Instrument -{ -public: - virtual ~Instrument() {} - - virtual void Start() = 0; - - virtual void Stop() = 0; - - virtual std::vector<Measurement> GetMeasurements() const = 0; - - virtual const char* GetName() const = 0; - -}; - -} //namespace armnn |