Add missing docstring to Application#report_benchmarks

This commit is contained in:
Ian Cordasco 2016-06-20 13:49:17 -05:00
parent 590e15cb4c
commit ba5bf0c57a
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -229,8 +229,10 @@ class Application(object):
self.end_time = time.time()
def report_benchmarks(self):
"""Aggregate, calculate, and report benchmarks for this run."""
if not self.options.benchmark:
return
time_elapsed = self.end_time - self.start_time
statistics = [('seconds elapsed', time_elapsed)]
add_statistic = statistics.append