Skip to content

Commit 61e7fe8

Browse files
committed
TimerThing should display a total time at the end of the output
1 parent 82e4d17 commit 61e7fe8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

thing/stuff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def finished(self):
2424
for i in range(1, len(self.times)):
2525
t, name = self.times[i]
2626
print '%-15s: %.3fs' % (name, t - self.times[i-1][0])
27+
print '-' * 23
28+
print '%-15s: %.3fs' % ('total', self.times[-1][0] - self.times[0][0])
2729

2830

2931
def handle_skillplan_upload(request):

0 commit comments

Comments
 (0)