in reply to Re: Calculating time between two events in a log.
in thread Calculating time between two events in a log.

Correction to the script
elsif (/success/) { if ($ms < $invoke{ms}) { $ms += 1000; $epoch -= 1; } my $seconds = $epoch - $invoke{epoch}; my $millisecs = $ms - $invoke{ms}; printf "diff - secs: %2d ms: %3d\n", $seconds, $millisecs; }

Replies are listed 'Best First'.
Re^3: Calculating time between two events in a log.
by perlguyjoe (Novice) on Aug 13, 2013 at 19:46 UTC
    I like this approach. Would you mind sharing the wisdom behind this?