mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +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()
|
self.end_time = time.time()
|
||||||
|
|
||||||
def report_benchmarks(self):
|
def report_benchmarks(self):
|
||||||
|
"""Aggregate, calculate, and report benchmarks for this run."""
|
||||||
if not self.options.benchmark:
|
if not self.options.benchmark:
|
||||||
return
|
return
|
||||||
|
|
||||||
time_elapsed = self.end_time - self.start_time
|
time_elapsed = self.end_time - self.start_time
|
||||||
statistics = [('seconds elapsed', time_elapsed)]
|
statistics = [('seconds elapsed', time_elapsed)]
|
||||||
add_statistic = statistics.append
|
add_statistic = statistics.append
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue