You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refer to:
The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)
this will cause issue for ProcessingTimingStats:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/code/catkin_ws/src/dt-core/packages/easy_node/include/easy_node/utils/timing.py", line 90, in phase
with dtu.timeit_clock(phase_name):
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/code/catkin_ws/src/dt-ros-commons/packages/duckietown/include/duckietown_utils/timeit.py", line 59, in timeit_clock
with timeit_generic(desc=desc, minimum=minimum, time_function=time.clock):
AttributeError: module 'time' has no attribute 'clock'
The text was updated successfully, but these errors were encountered:
dt-ros-commons/packages/duckietown/include/duckietown_utils/timeit.py
Line 59 in 9614ae8
Refer to:
The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)
this will cause issue for
ProcessingTimingStats
:The text was updated successfully, but these errors were encountered: