From: Carl Hetherington Date: Wed, 29 Jun 2016 15:09:02 +0000 (+0100) Subject: Add another hack script. X-Git-Tag: v2.8.15~25 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bd4c3ae31019b2c6217f269a7623f6c2279067c1;p=dcpomatic.git Add another hack script. --- diff --git a/hacks/testtimings b/hacks/testtimings new file mode 100644 index 000000000..f4e808459 --- /dev/null +++ b/hacks/testtimings @@ -0,0 +1,22 @@ +#!/usr/bin/python + +import sys + +if len(sys.argv) < 2: + print>>sys.stderr,'Syntax %s ' % sys.argv[0] + sys.exit(1) + +tests = {} + +with open(sys.argv[1]) as f: + while True: + l = f.readline() + if l == '': + break + + s = l.split() + if len(s) == 7 and s[6][-3:] == 'mks': + tests[float(s[6][:-3]) / 1000000] = s[3][1:-2] + +for x in sorted(tests): + print x,tests[x]