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
diff --git a/tests/ExecuteNetwork/ArmNNExecutor.cpp b/tests/ExecuteNetwork/ArmNNExecutor.cpp
index 121d3fa..7060497 100644
--- a/tests/ExecuteNetwork/ArmNNExecutor.cpp
+++ b/tests/ExecuteNetwork/ArmNNExecutor.cpp
@@ -217,9 +217,11 @@
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 @@
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)