aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2024-03-26 14:38:52 +0000
committerColm Donelan <colm.donelan@arm.com>2024-04-02 11:24:42 +0000
commit1c368a1190a1b0363ff5dd488d2bd48afe3d0a3e (patch)
tree3757ace5feb0483a5a7ed77dca713b48408ffede
parent02cebb6f6e29eef0abc11e89b1e16219874a33f0 (diff)
downloadarmnn-1c368a1190a1b0363ff5dd488d2bd48afe3d0a3e.tar.gz
IVGCVSW-8224 Minor change to the printouts in ExecuteNetwork.
Adding some human readable information to the "Inferences began" and "Inferences ended" printouts to make them clearer. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I00b2b75a9da19c27fd33574e3bb0b9a1d8e5c5b5
-rw-r--r--tests/ExecuteNetwork/ArmNNExecutor.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/ExecuteNetwork/ArmNNExecutor.cpp b/tests/ExecuteNetwork/ArmNNExecutor.cpp
index 121d3fab15..7060497c83 100644
--- a/tests/ExecuteNetwork/ArmNNExecutor.cpp
+++ b/tests/ExecuteNetwork/ArmNNExecutor.cpp
@@ -217,9 +217,11 @@ void ArmNNExecutor::ExecuteSync()
std::vector<const void*> ArmNNExecutor::Execute()
{
- ARMNN_LOG(info) << "Inferences began at: "
+ time_t rawtime;
+ time (&rawtime);
+ ARMNN_LOG(info) << "Inferences began at: ("
<< std::chrono::duration_cast<std::chrono::nanoseconds>(armnn::GetTimeNow().time_since_epoch()).count()
- << " ns\n";
+ << " ns) " << ctime (&rawtime);
if(m_Params.m_ThreadPoolSize == 0)
{
@@ -230,9 +232,10 @@ std::vector<const void*> ArmNNExecutor::Execute()
ExecuteAsync();
}
- ARMNN_LOG(info) << "Inferences ended at: "
+ time (&rawtime);
+ ARMNN_LOG(info) << "Inferences ended at: ("
<< std::chrono::duration_cast<std::chrono::nanoseconds>(armnn::GetTimeNow().time_since_epoch()).count()
- << " ns\n";
+ << " ns) " << ctime (&rawtime);
std::vector<const void*> results;
for (auto& output : m_OutputStorage)