Skip to content

Commit a291634

Browse files
authored
Merge pull request #3753 from lanzagar/clock
webview: Replace deprecated time.clock
2 parents f92ed93 + e5ef870 commit a291634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orange/widgets/utils/webview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ def wait(until: callable, timeout=5000):
398398
timeout: int
399399
Milliseconds to wait until TimeoutError is raised.
400400
"""
401-
started = time.clock()
401+
started = time.perf_counter()
402402
while not until():
403403
qApp.processEvents(QEventLoop.ExcludeUserInputEvents)
404-
if (time.clock() - started) * 1000 > timeout:
404+
if (time.perf_counter() - started) * 1000 > timeout:
405405
raise TimeoutError()
406406

407407

0 commit comments

Comments
 (0)