8 my ($button, $timings) = split /\t/;
9 my @timings = split /\s+/, $timings;
13 for my $t (@timings) {
14 my $out = "<$bit:$t>";
16 if ($t >= 9000 && $t <= 9100) {
18 } elsif ($t >= 500 && $t <= 680) {
22 if ($t >= 3500 && $t <= 4500) {
24 } elsif ($t >= 400 && $t <= 550) {
26 } elsif ($t >= 1300 && $t <= 1700) {
32 push @{$types{$out}}, $t;
34 print $button, "\t", join("", @out), "\n";
37 print "\n# Median timings [μs]\n\n";
38 for my $k (sort keys %types) {
39 my @v = sort @{$types{$k}};
40 print "$k\t", $v[@v/2], "\n";