Skip to content

Commit 6dc4219

Browse files
committed
Add string formatting for time
1 parent 99826b7 commit 6dc4219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeJam/tail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def main():
3636
start_timer()
3737
readInput()
3838
stop_timer()
39-
llog("-----------", get_time(), "secs -----------")
39+
llog("-----------", "{:.5e}".format(get_time()), "secs -----------")
4040
llog()
4141
llog("============ doing computation ============")
4242
start_timer()
4343
calcFunction()
4444
stop_timer()
45-
llog("-----------", get_time(), "secs -----------")
45+
llog("-----------", "{:.5e}".format(get_time()), "secs -----------")
4646
llog()
4747

4848
if "IA_MODE" not in FLAGS:

0 commit comments

Comments
 (0)