From 20220169f0ce6a1a6a22d92faf8a88e9c84ea36d Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 2 Feb 2019 22:45:07 +0100 Subject: [PATCH] [git fast commit] 02. Feb 2019 - 22:45:07 --- insurgencyParsing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/insurgencyParsing.py b/insurgencyParsing.py index af30bc2..f841217 100644 --- a/insurgencyParsing.py +++ b/insurgencyParsing.py @@ -26,6 +26,7 @@ def parse(f, exit_on_eof=True, start_at_end=False): round_lines = [] last_line_was_winner = False lineCount = 0 + startTime = datetime.now() while True: old_line_nr = f.tell() line = f.readline() @@ -43,7 +44,9 @@ def parse(f, exit_on_eof=True, start_at_end=False): lineCount += 1 if lineCount % 100000 == 0: - print("At Line: {}".format(lineCount)) + diff = startTime - datetime.now() + print("At Line: {} Tot: {} Per 100k:{}".format(\ + lineCount, diff, diff/(lineCount/100000))) if seek_start and not "round_start_active" in line and line: continue