diff options
author | Kevin May <kevin.may@arm.com> | 2023-11-28 15:38:37 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2023-11-28 15:38:37 +0000 |
commit | 691ceca3530e4e7a51f1d9e86cadcb5c7619159b (patch) | |
tree | 0efaa68cb12221300b7c23eee614708476df8387 /tests | |
parent | 0752e779a5a96d46da513d6f71175cee1f428db9 (diff) | |
download | armnn-691ceca3530e4e7a51f1d9e86cadcb5c7619159b.tar.gz |
Add Logging to ExecuteNetwork
* Adding clock times before and after inferences which SA team requested
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: Idc37085a25ce573cb74340f1be7313a616f561e8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ExecuteNetwork/ArmNNExecutor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ExecuteNetwork/ArmNNExecutor.cpp b/tests/ExecuteNetwork/ArmNNExecutor.cpp index 42d41ef169..58655c1814 100644 --- a/tests/ExecuteNetwork/ArmNNExecutor.cpp +++ b/tests/ExecuteNetwork/ArmNNExecutor.cpp @@ -212,6 +212,10 @@ void ArmNNExecutor::ExecuteSync() std::vector<const void*> ArmNNExecutor::Execute() { + ARMNN_LOG(info) << "Inferences began at: " + << std::chrono::duration_cast<std::chrono::nanoseconds>(armnn::GetTimeNow().time_since_epoch()).count() + << " ns\n"; + if(m_Params.m_ThreadPoolSize == 0) { ExecuteSync(); @@ -220,6 +224,11 @@ std::vector<const void*> ArmNNExecutor::Execute() { ExecuteAsync(); } + + ARMNN_LOG(info) << "Inferences ended at: " + << std::chrono::duration_cast<std::chrono::nanoseconds>(armnn::GetTimeNow().time_since_epoch()).count() + << " ns\n"; + std::vector<const void*> results; for (auto& output : m_OutputStorage) { |