diff --git a/framework/pym/play/commands/modulesrepo.py b/framework/pym/play/commands/modulesrepo.py index 25dd8336b5..aa99c98e97 100644 --- a/framework/pym/play/commands/modulesrepo.py +++ b/framework/pym/play/commands/modulesrepo.py @@ -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' @@ -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)