[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Apparently time.time() is a more reliable time.clock()



commit 89e8ec1cc2f3f346cf3dae071486f4f03f1c6799
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
Date:   Mon Jul 18 12:54:39 2016 +1000

    Apparently time.time() is a more reliable time.clock()
---
 scripts/chutney_tests/verify.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/chutney_tests/verify.py b/scripts/chutney_tests/verify.py
index 8734b60..ac601c9 100644
--- a/scripts/chutney_tests/verify.py
+++ b/scripts/chutney_tests/verify.py
@@ -94,9 +94,9 @@ def _verify_traffic(network):
                                            LISTEN_PORT, connection_count,
                                            network._dfltEnv['hs_multi_client'])
     print("Transmitting Data:")
-    start_time = time.clock()
+    start_time = time.time()
     status = tt.run()
-    end_time = time.clock()
+    end_time = time.time()
     # if we fail, don't report the bandwidth
     if not status:
         return status

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits