<div dir="ltr">Is there any direct way to extract the current processing time the packet has taken?<div><br></div><div>I'm injecting this on seldomly used hook but I'm afraid it does not scale properly once it gets propagated to a production environment:</div><div><br></div><div>my ($seconds, $micro) = &Radius::Util::getTimeHires();<br>my $timehires = sprintf("%d.%0$6d",$seconds,$micro);<br>my $recvtime = sprintf ("%d.%06d",$r->{RecvTime},$r->{RecvTimeMicros});<br>$timehires-=$recvtime;<br><div><div class="gmail_signature" data-smartmail="gmail_signature">#timehires now has the number of elapsed seconds.microseconds since the packet was received</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">I had a look at $r->{StatsTrail}, but it seems to show stats for the previous packet.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Is there any easir (and efficient) way to extract the current packet processing time?</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Thanks in advance</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Bruno Tiago Rodrigues</div></div></div></div>