I'm trying to calculate end-to-end delay for SimpleServerApp in Veins-LTE and I'm unable to get any results, when I open the result file all the statistics related to the delay are 0 or NaN.
I looked in the Tic-Toc tutorial and tried to do something like that, but that way I didn't even get the statistics:
On the module:
delayVector.record(delay);
delayHist.collect(delay);
and when calling finish():
delayHist.recordAs("delayFinish");
where
simtime_t delay;
cOutVector delayVector;
cLongHistogram delayHist;
Then I tried to copy the procedure from other statistic recording, but I think that can't be used in my case, because I want to send a long:
On the NED file:
@signal[delay](type="long");
@statistic[delay](title="delay"; source="delay"; record=vector, stats, histogram);
On the module:
emit(delay,delay); //where the first delay is the signal and the second one, the value.
That's what I do to calculate the delay:
On the sending module:
msg->setSendingTime();
On the receiving module:
simtime_t delay = simTime() - msg->getSendingTime();
I'd appreciate any help!
See Question&Answers more detail:os