From 1c368a1190a1b0363ff5dd488d2bd48afe3d0a3e Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 26 Mar 2024 14:38:52 +0000 Subject: 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 Change-Id: I00b2b75a9da19c27fd33574e3bb0b9a1d8e5c5b5 --- tests/ExecuteNetwork/ArmNNExecutor.cpp | 11 +++++++---- 1 file 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 ArmNNExecutor::Execute() { - ARMNN_LOG(info) << "Inferences began at: " + time_t rawtime; + time (&rawtime); + ARMNN_LOG(info) << "Inferences began at: (" << std::chrono::duration_cast(armnn::GetTimeNow().time_since_epoch()).count() - << " ns\n"; + << " ns) " << ctime (&rawtime); if(m_Params.m_ThreadPoolSize == 0) { @@ -230,9 +232,10 @@ std::vector ArmNNExecutor::Execute() ExecuteAsync(); } - ARMNN_LOG(info) << "Inferences ended at: " + time (&rawtime); + ARMNN_LOG(info) << "Inferences ended at: (" << std::chrono::duration_cast(armnn::GetTimeNow().time_since_epoch()).count() - << " ns\n"; + << " ns) " << ctime (&rawtime); std::vector results; for (auto& output : m_OutputStorage) -- cgit v1.2.1