Skip to content

Commit d947801

Browse files
committed
Show only no decimal places for millisecond time (easier to scan)
1 parent d337101 commit d947801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/08_perf/big_dealership/q_and_a.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def timed(msg, func):
1010
func()
1111

1212
dt = datetime.now() - t0
13-
print("{} Time: {:,.3f} ms".format(msg, dt.total_seconds() * 1000.0), flush=True)
13+
print("{} Time: {:,.0f} ms".format(msg, dt.total_seconds() * 1000.0), flush=True)
1414

1515

1616
mongo_setup.init()

src/08_perf/starter_big_dealership/q_and_a.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def timed(msg, func):
1010
func()
1111

1212
dt = datetime.now() - t0
13-
print("{} Time: {:,.3f} ms".format(msg, dt.total_seconds() * 1000.0), flush=True)
13+
print("{} Time: {:,.0f} ms".format(msg, dt.total_seconds() * 1000.0), flush=True)
1414

1515

1616
mongo_setup.init()

0 commit comments

Comments
 (0)