What is the proper way to calculate latency in omnet++?
<p>I have written a simulation module. For measuring latency, I am using this:</p>

<pre><code>simTime().dbl() - tempLinkLayerFrame-&gt;getCreationTime().dbl();
</code></pre>

<p>Is this the proper way ? If not then please suggest me or a sample code would be very helpful.</p>

<p>Also, is the <code>simTime()</code> latency is the actual latency in terms of micro
seconds which I can write in my research paper? or do I need to
scale it up?</p>

<p>Also, I found that the channel data rate and channel delay has no impact on the link latency instead if I vary the trigger duration the latency varies. For example </p>

<pre><code>timer = new cMessage("SelfTimer");
scheduleAt(simTime() + 0.000000000249, timer);
</code></pre>

<p>If this is not the proper way to trigger simple module recursively then please suggest one.</p>