1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Flush output from timing script.

This commit is contained in:
Matt Clay 2018-08-31 00:07:54 -07:00
parent 857a553fa1
commit 771768966f

View file

@ -8,3 +8,4 @@ start = time.time()
for line in sys.stdin:
seconds = time.time() - start
sys.stdout.write('%02d:%02d %s' % (seconds // 60, seconds % 60, line))
sys.stdout.flush()