when the a packet is created the field creationTime is set,
e2eDelay = simTime() - tmpPkt->getCreationTime();
is the time since the creation, due to that the packet is sent immediately after the creation this is the end to end delay
the second you can find in any basic statistic book
De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Ð?t Lê khánh
Enviado el: martes, 25 de noviembre de 2014 9:00
Para: omn...@googlegroups.com
Asunto: [Omnetpp-l] Can you explain to me the meaning of this code
In inetmanet / src / wpan / applications / Ieee802154TestApp / Ieee802154TestApp.cc.
void Ieee802154TestApp::handleLowerMsg(cMessage* apMsg)
{
...
simtime_t e2eDelay;
Ieee802154AppPkt* tmpPkt = check_and_cast<Ieee802154AppPkt *>(apMsg);
e2eDelay = simTime() - tmpPkt->getCreationTime();
e2eDelayVec.record(SIMTIME_DBL(e2eDelay));
....
}
and
sumE2EDelay += e2eDelay;
meanE2EDelayVec.record(sumE2EDelay/numReceived);
I know this code to calculate delay by dont understand meaning of these, Can you explain to me?
thank you!
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.