Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5a9bdb86ad
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (15 sloc) 0.42 kb
#calculate jitter from a list of samples including timestamps in ms
use strict;
use warnings;
$| = 1;
print '';
my $lastSample = 0;
my $lastDelay = 0;
while(<>) {
my ($channel, $time, $value) = split(/\s+/);
my $delay = $time - $lastSample;
my $change = $delay - $lastDelay;
$lastSample = $time;
$lastDelay = $delay;
printf "$channel\t$time\t$value\t%.6f\n", $change * 1000;
}
Jump to Line
Something went wrong with that request. Please try again.