Browse Source

Updated test to give averages

Yentl Van Tendeloo 8 years ago
parent
commit
46fbdd5137
1 changed files with 6 additions and 3 deletions
  1. 6 3
      wrappers/test.py

+ 6 - 3
wrappers/test.py

@@ -6,8 +6,11 @@ import random
 init()
 login(str(random.random()), str(random.random()))
 
+tot = 0.0
+
 for _ in range(10):
-    print("START @ " + str(time.time()))
+    start = time.time()
     model_list()
-    print("END @ " + str(time.time()))
-    sys.stdout.flush()
+    tot += (time.time() - start)
+
+print(tot/10.0)