Skip to content

Commit

Permalink
The clock function was removed from time module in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
osmanirosado committed Feb 15, 2024
1 parent f832ef8 commit 8070e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/pym/play/commands/modulesrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, width=55):

def retrieve(self, url, destination, callback=None):
self.size = 0
time.clock()
time.perf_counter()
try:
headers={'User-Agent':DEFAULT_USER_AGENT,
'Accept': 'application/json'
Expand Down Expand Up @@ -154,7 +154,7 @@ def progress(self, bytes_so_far, blocksize, filesize):
done = 100
bar = self.bar(bytes_so_far, filesize, done)
if not self.cycles % 3 and bits != filesize:
now = time.clock()
now = time.perf_counter()
elapsed = now-self.before
if elapsed:
speed = self.kibi(blocksize * 3 // elapsed)
Expand Down

0 comments on commit 8070e1e

Please sign in to comment.