From 6bd775f86c6bc9a7d815feb8437ca6f3cf18d460 Mon Sep 17 00:00:00 2001 From: Jordan Dorham Date: Wed, 1 Apr 2020 08:36:53 -0700 Subject: [PATCH] point-to-point: Time logging changes With contributions from Kim Ferrari and Anna Poon. --- src/point-to-point/model/point-to-point-net-device.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/point-to-point/model/point-to-point-net-device.cc b/src/point-to-point/model/point-to-point-net-device.cc index 3fa9cbfd8..389f41bdf 100644 --- a/src/point-to-point/model/point-to-point-net-device.cc +++ b/src/point-to-point/model/point-to-point-net-device.cc @@ -228,7 +228,7 @@ PointToPointNetDevice::SetDataRate (DataRate bps) void PointToPointNetDevice::SetInterframeGap (Time t) { - NS_LOG_FUNCTION (this << t.GetSeconds ()); + NS_LOG_FUNCTION (this << t.As (Time::S)); m_tInterframeGap = t; } @@ -251,7 +251,7 @@ PointToPointNetDevice::TransmitStart (Ptr p) Time txTime = m_bps.CalculateBytesTxTime (p->GetSize ()); Time txCompleteTime = txTime + m_tInterframeGap; - NS_LOG_LOGIC ("Schedule TransmitCompleteEvent in " << txCompleteTime.GetSeconds () << "sec"); + NS_LOG_LOGIC ("Schedule TransmitCompleteEvent in " << txCompleteTime.As (Time::S)); Simulator::Schedule (txCompleteTime, &PointToPointNetDevice::TransmitComplete, this); bool result = m_channel->TransmitStart (p, this, txTime);