From ede6419fc51a4f567b60b4422372ac3985f4df27 Mon Sep 17 00:00:00 2001 From: Kim Ferrari Date: Thu, 16 Apr 2020 06:20:26 -0700 Subject: [PATCH] spectrum: Update NS_LOG print format for ns3::Time --- src/spectrum/model/three-gpp-channel-model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectrum/model/three-gpp-channel-model.cc b/src/spectrum/model/three-gpp-channel-model.cc index dfd47a283..a22c734df 100644 --- a/src/spectrum/model/three-gpp-channel-model.cc +++ b/src/spectrum/model/three-gpp-channel-model.cc @@ -733,7 +733,7 @@ ThreeGppChannelModel::ChannelMatrixNeedsUpdate (Ptr // if the coherence time is over the channel has to be updated if (!m_updatePeriod.IsZero () && Simulator::Now() - channelMatrix->m_generatedTime > m_updatePeriod) { - NS_LOG_DEBUG ("Generation time " << channelMatrix->m_generatedTime.GetNanoSeconds () << " now " << Simulator::Now ().GetNanoSeconds ()); + NS_LOG_DEBUG ("Generation time " << channelMatrix->m_generatedTime.As (Time::NS) << " now " << Now ().As (Time::NS)); update = true; }