Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

time.clock has been deprecated and removed in python 3.8 in favor of time.perf_counter/process_time #7896

Closed
tirkarthi opened this issue Jul 18, 2020 · 1 comment · Fixed by #7897
Labels
Z-Help-Wanted We know exactly how to fix this issue, and would be grateful for any contribution z-p3 (Deprecated Label)

Comments

@tirkarthi
Copy link
Contributor

Description

time.clock has been deprecated and removed in python 3.8 in favor of time.perf_counter/process_time . Reference : python/cpython#13270

Steps to reproduce

synapse/logging/utils.py
88:        start = time.clock()
95:            end = time.clock()
@anoadragon453
Copy link
Member

As mentioned in the attached PR (thanks!) it seems as if the method that calls time.clock in Synapse is no longer used.

@anoadragon453 anoadragon453 added Z-Help-Wanted We know exactly how to fix this issue, and would be grateful for any contribution z-p3 (Deprecated Label) labels Jul 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z-Help-Wanted We know exactly how to fix this issue, and would be grateful for any contribution z-p3 (Deprecated Label)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants