Skip to content

Commit

Permalink
Merge pull request #123 from marco97pa/master
Browse files Browse the repository at this point in the history
[Fix] time.clock() deprecated in Python 3.8
  • Loading branch information
fogleman authored Dec 14, 2020
2 parents 38a98d4 + b0d6b70 commit e311522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ def process_queue(self):
add_block() or remove_block() was called with immediate=False
"""
start = time.clock()
while self.queue and time.clock() - start < 1.0 / TICKS_PER_SEC:
start = time.perf_counter()
while self.queue and time.perf_counter() - start < 1.0 / TICKS_PER_SEC:
self._dequeue()

def process_entire_queue(self):
Expand Down

0 comments on commit e311522

Please sign in to comment.