aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/benchmark.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-17 06:15:59 +0000
committerPjotr Prins2016-06-17 06:15:59 +0000
commit9ed3c1e6ed99c56d77fd5d90ff42f9acfe7ace68 (patch)
treefabca0ec5073e2c17da425eeeb7e40a9e15c564f /wqflask/utility/benchmark.py
parent497b72d3496b9368167616774e58250598d7bd83 (diff)
downloadgenenetwork2-9ed3c1e6ed99c56d77fd5d90ff42f9acfe7ace68.tar.gz
Removed trailing spaces in .py and .js files
Diffstat (limited to 'wqflask/utility/benchmark.py')
-rwxr-xr-xwqflask/utility/benchmark.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/utility/benchmark.py b/wqflask/utility/benchmark.py
index 182187ae..d5b32703 100755
--- a/wqflask/utility/benchmark.py
+++ b/wqflask/utility/benchmark.py
@@ -7,7 +7,7 @@ import time
class Bench(object):
entries = collections.OrderedDict()
-
+
def __init__(self, name=None):
self.name = name
@@ -26,10 +26,10 @@ class Bench(object):
time_taken = time.time() - self.start_time
print(" %s took: %f seconds" % (name, (time_taken)))
-
+
if self.name:
Bench.entries[self.name] = Bench.entries.get(self.name, 0) + time_taken
-
+
@classmethod
def report(cls):
@@ -39,7 +39,7 @@ class Bench(object):
percent = int(round((time_taken/total_time) * 100))
print("[{}%] {}: {}".format(percent, name, time_taken))
print()
-
+
def reset(cls):
"""Reset the entries"""
cls.entries = collections.OrderedDict() \ No newline at end of file