From ae050524109f1ce827962665436ef7430f2ac479 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Wed, 22 Mar 2023 16:48:58 +0000 Subject: IVGCVSW-7255 Update Doxygen Documentation and publish on GitHub. * Updating Doxygen documentation for 23.02 release. Signed-off-by: David Monahan Change-Id: I545574ff7664b4595d2fe6a91a3c35d2ad55df82 --- 23.02/_wall_clock_timer_8cpp_source.xhtml | 82 ++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 19 deletions(-) (limited to '23.02/_wall_clock_timer_8cpp_source.xhtml') diff --git a/23.02/_wall_clock_timer_8cpp_source.xhtml b/23.02/_wall_clock_timer_8cpp_source.xhtml index 7e3caa989f..20e6d4a747 100644 --- a/23.02/_wall_clock_timer_8cpp_source.xhtml +++ b/23.02/_wall_clock_timer_8cpp_source.xhtml @@ -8,7 +8,7 @@ - + ArmNN: src/armnn/WallClockTimer.cpp Source File @@ -19,9 +19,6 @@ - @@ -30,7 +27,8 @@ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], }); - + + @@ -51,18 +49,21 @@ - + +/* @license-end */
@@ -76,7 +77,9 @@ $(function() {
@@ -98,24 +101,65 @@ $(document).ready(function(){initNavTree('_wall_clock_timer_8cpp_source.xhtml','
WallClockTimer.cpp
-Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "WallClockTimer.hpp"
7 
8 namespace armnn
9 {
10 
11 const std::string WallClockTimer::WALL_CLOCK_TIME ("Wall clock time");
14 
15 const char* WallClockTimer::GetName() const
16 {
17  return "WallClockTimer";
18 }
19 
21 {
22  m_Start = clock::now();
23 }
24 
26 {
27  m_Stop = clock::now();
28 }
29 
30 std::vector<Measurement> WallClockTimer::GetMeasurements() const
31 {
32  const auto delta = std::chrono::duration<double, std::micro>(m_Stop - m_Start);
33  const auto startTimeMs = std::chrono::duration<double, std::micro>(m_Start.time_since_epoch());
34  const auto stopTimeMs = std::chrono::duration<double, std::micro>(m_Stop.time_since_epoch());
35 
36  return { { WALL_CLOCK_TIME, delta.count(), Measurement::Unit::TIME_US },
37  { WALL_CLOCK_TIME_START, startTimeMs.count(), Measurement::Unit::TIME_US },
38  { WALL_CLOCK_TIME_STOP, stopTimeMs.count(), Measurement::Unit::TIME_US } };
39 }
40 
41 } //namespace armnn
-
Copyright (c) 2021 ARM Limited and Contributors.
-
void Start() override
-
static const std::string WALL_CLOCK_TIME_STOP
-
static const std::string WALL_CLOCK_TIME_START
-
const char * GetName() const override
-
void Stop() override
-
static const std::string WALL_CLOCK_TIME
-
std::vector< Measurement > GetMeasurements() const override
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2017 Arm Ltd. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "WallClockTimer.hpp"
+
7 
+
8 namespace armnn
+
9 {
+
10 
+
11 const std::string WallClockTimer::WALL_CLOCK_TIME ("Wall clock time");
+ + +
14 
+
15 const char* WallClockTimer::GetName() const
+
16 {
+
17  return "WallClockTimer";
+
18 }
+
19 
+ +
21 {
+
22  m_Start = clock::now();
+
23 }
+
24 
+ +
26 {
+
27  m_Stop = clock::now();
+
28 }
+
29 
+
30 std::vector<Measurement> WallClockTimer::GetMeasurements() const
+
31 {
+
32  const auto delta = std::chrono::duration<double, std::micro>(m_Stop - m_Start);
+
33  const auto startTimeMs = std::chrono::duration<double, std::micro>(m_Start.time_since_epoch());
+
34  const auto stopTimeMs = std::chrono::duration<double, std::micro>(m_Stop.time_since_epoch());
+
35 
+
36  return { { WALL_CLOCK_TIME, delta.count(), Measurement::Unit::TIME_US },
+
37  { WALL_CLOCK_TIME_START, startTimeMs.count(), Measurement::Unit::TIME_US },
+
38  { WALL_CLOCK_TIME_STOP, stopTimeMs.count(), Measurement::Unit::TIME_US } };
+
39 }
+
40 
+
41 } //namespace armnn
+
std::vector< Measurement > GetMeasurements() const override
+
const char * GetName() const override
+
static const std::string WALL_CLOCK_TIME_START
+ +
void Stop() override
+
void Start() override
+
Copyright (c) 2021 ARM Limited and Contributors.
+
static const std::string WALL_CLOCK_TIME_STOP
+
static const std::string WALL_CLOCK_TIME
-- cgit v1.2.1