Browse code

Flush output from timing script.

(cherry picked from commit 771768966f870f4e96f529f2a67e17f16da90805)

Matt Clay authored on 2018/08/31 16:07:54
Showing 1 changed files
... ...
@@ -8,3 +8,4 @@ start = time.time()
8 8
 for line in sys.stdin:
9 9
     seconds = time.time() - start
10 10
     sys.stdout.write('%02d:%02d %s' % (seconds // 60, seconds % 60, line))
11
+    sys.stdout.flush()