Skip to content

Commit 64976ca

Browse files
committed
Output total processing time at end of run.
1 parent 963a398 commit 64976ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/parserindexer/parse_all.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from jsreparser import JsreParser
66
import io, ntpath
77
from utils import canonical_name, canonical_target_name
8-
8+
import datetime
99

1010
class ParseAll(CoreNLPParser):
1111

@@ -177,4 +177,7 @@ def parse_file(self, path):
177177
cli_p.add_argument("-j", "--jsre", help="Path to jSRE installation directory.", required=True)
178178
cli_p.add_argument("-m", "--jsre-model", help="Base path to jSRE models.", required=True)
179179
args = vars(cli_p.parse_args())
180+
start_time = datetime.datetime.now()
180181
main(ParseAll, args)
182+
print('Took ' + str(datetime.datetime.now() - start_time)[:-4] +
183+
' (H:M:S) to process all files.')

0 commit comments

Comments
 (0)