Skip to content

Commit a9ed21f

Browse files
authored
Merge pull request #1467 from osmanirosado/master
#1466 The clock function was removed from time module in Python 3.8
2 parents 8266879 + 8070e1e commit a9ed21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/pym/play/commands/modulesrepo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self, width=55):
101101

102102
def retrieve(self, url, destination, callback=None):
103103
self.size = 0
104-
time.clock()
104+
time.perf_counter()
105105
try:
106106
headers={'User-Agent':DEFAULT_USER_AGENT,
107107
'Accept': 'application/json'
@@ -162,7 +162,7 @@ def progress(self, bytes_so_far, blocksize, filesize):
162162
done = 100
163163
bar = self.bar(bytes_so_far, filesize, done)
164164
if not self.cycles % 3 and bits != filesize:
165-
now = time.clock()
165+
now = time.perf_counter()
166166
elapsed = now-self.before
167167
if elapsed:
168168
speed = self.kibi(blocksize * 3 // elapsed)

0 commit comments

Comments
 (0)