We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4783af commit f269bd1Copy full SHA for f269bd1
vpython/rate_control.py
@@ -1,8 +1,8 @@
1
import time
2
-try:
3
- _clock = time.perf_counter # time.clock is deprecated in Python 3.3, gone in 3.8
4
-except:
5
- _clock = time.clock
+
+_clock = time.perf_counter
6
_tick = 1/60
7
8
#import platform
vpython/vpython.py
@@ -6,10 +6,10 @@
from math import sqrt, tan, pi
9
10
- clock = time.perf_counter # time.clock is deprecated in Python 3.3, gone in 3.8
11
12
- clock = time.clock
+# vpython provides clock in its namespace
+clock = time.perf_counter
13
import sys
14
from . import __version__, __gs_version__
15
from ._notebook_helpers import _isnotebook
0 commit comments