Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 23 lines (15 sloc) 0.42 kb
4034751 added info on data publication
Tyler Riddle authored
1 #calculate jitter from a list of samples including timestamps in ms
2
5ad957e updated readme
Tyler Riddle authored
3 use strict;
4 use warnings;
5
6 $| = 1;
7 print '';
8
9 my $lastSample = 0;
10 my $lastDelay = 0;
11
12 while(<>) {
572a474 added in timer offset support for adc data subscription
Tyler Riddle authored
13 my ($channel, $time, $value) = split(/\s+/);
14
5ad957e updated readme
Tyler Riddle authored
15 my $delay = $time - $lastSample;
16 my $change = $delay - $lastDelay;
17
18 $lastSample = $time;
19 $lastDelay = $delay;
57e1c9d ADC operation is reliable but jitter is worse; client tracks differen…
Tyler Riddle authored
20
4034751 added info on data publication
Tyler Riddle authored
21 printf "$channel\t$time\t$value\t%.6f\n", $change * 1000;
5ad957e updated readme
Tyler Riddle authored
22 }
Something went wrong with that request. Please try again.