about summary refs log tree commit diff
path: root/wqflask/utility/benchmark.py
diff options
context:
space:
mode:
authorzsloan2016-06-20 16:01:12 +0000
committerzsloan2016-06-20 16:01:12 +0000
commit30a37c6f1f9a9f759a92fd61876af9e9e3d078b9 (patch)
treee4f5b49aa21c32aa2b770b1a65c8fef7782b625f /wqflask/utility/benchmark.py
parent4fec0e6fc0772785a30451d417082bc189f2f6dd (diff)
parent10df36b60273d81678f6630c07a2d8e5a6409282 (diff)
downloadgenenetwork2-30a37c6f1f9a9f759a92fd61876af9e9e3d078b9.tar.gz
Merge branch 'staging' of github.com:genenetwork/genenetwork2 into development
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