What is the proper way or place to calculate Inter Packet Delay in VEINS

时间:2017-12-18 05:38:15

标签: veins

time2 = simTime() - time1;
time1 = simTime();
statsInterPacketDelay = (statsInterPacketDelay + time2)/2;

I have this code inside reseivedMessage function in my application class.

When The vehicle exists the simulation, finish() method is called and then I record statsInterPacketDelay.

0 个答案:

没有答案