[FIX] Deprecation of the time.clock()

This commit is contained in:
Benedek Racz 2019-09-04 12:58:38 +02:00
parent 16f3e4fab5
commit 58f64d39fa
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
language: python
dist: xenial # required for Python >= 3.7
matrix:
include:
- stage: test
- os: windows
language: sh
python: "3.7"
@ -18,7 +20,7 @@ install:
# command to run tests
script:
- coverage run -m unittest
- tox
# Push the results back to codecov
after_success:

View File

@ -2319,7 +2319,7 @@ class Wtty:
if self.__currentReadCo.Y > maxconsoleY:
time.sleep(.2)
start = time.clock()
start = time.time()
s = self.readConsoleToCursor()
if self.__currentReadCo.Y > maxconsoleY:
@ -2334,7 +2334,7 @@ class Wtty:
return ''
time.sleep(0.001)
end = time.clock()
end = time.time()
timeout -= end - start
except Exception as e: