aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/WallClockTimer.hpp
diff options
context:
space:
mode:
authorNina Drozd <nina.drozd@arm.com>2018-09-21 18:42:09 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-10 16:16:57 +0100
commit69851b525b9040ee7bf4b796efe74d473bc4e321 (patch)
tree1a3b0ae764a6bc4c4249c69df198fef3bb92c833 /src/armnn/WallClockTimer.hpp
parente448be3ac55897a3eabe85962891f8414f8e3cf9 (diff)
downloadarmnn-69851b525b9040ee7bf4b796efe74d473bc4e321.tar.gz
IVGCVSW-1821 - update NEON workload utils to use timers in correct order, updated units used in NeonTimer
Change-Id: I593af42bd2930dd9d147354b706087e3ac260fe9
Diffstat (limited to 'src/armnn/WallClockTimer.hpp')
-rw-r--r--src/armnn/WallClockTimer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/armnn/WallClockTimer.hpp b/src/armnn/WallClockTimer.hpp
index 5e88382015..09cc514eae 100644
--- a/src/armnn/WallClockTimer.hpp
+++ b/src/armnn/WallClockTimer.hpp
@@ -42,6 +42,8 @@ public:
// Get the name of the timer
const char* GetName() const override;
+ void SetScaleFactor(Measurement::Unit measurementUnit);
+
// Get the recorded measurements
std::vector<Measurement> GetMeasurements() const override;
@@ -58,6 +60,8 @@ public:
private:
clock::time_point m_Start;
clock::time_point m_Stop;
+ float m_ScaleFactor = 1.f;
+ Measurement::Unit m_Unit = Measurement::Unit::TIME_MS;
};
} //namespace armnn