mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-01 19:36:54 +00:00
Add missing docstring to Application#report_benchmarks
This commit is contained in:
parent
590e15cb4c
commit
ba5bf0c57a
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue