point-to-point: Time logging changes
With contributions from Kim Ferrari and Anna Poon.
This commit is contained in:
committed by
Tom Henderson
parent
3d1a2f36ac
commit
6bd775f86c
@@ -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<Packet> 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);
|
||||
|
||||
Reference in New Issue
Block a user