소스 검색

Apparently time.time() is a more reliable time.clock()

teor (Tim Wilson-Brown) 7 년 전
부모
커밋
89e8ec1cc2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scripts/chutney_tests/verify.py

+ 2 - 2
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