Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
fa3a74e3
Commit
fa3a74e3
authored
Apr 01, 2021
by
carlosribas
Browse files
time.clock() is deprecated
parent
3a36df07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rnacentral/apiv1/test.py
rnacentral/apiv1/test.py
+2
-2
No files found.
rnacentral/apiv1/test.py
View file @
fa3a74e3
...
...
@@ -23,11 +23,11 @@ from rest_framework.test import APITestCase, APIClient
class
Timer
(
object
):
"""Helper class for detecting long-running requests."""
def
__enter__
(
self
):
self
.
start
=
time
.
clock
()
self
.
start
=
time
.
perf_counter
()
return
self
def
__exit__
(
self
,
*
args
):
self
.
end
=
time
.
clock
()
self
.
end
=
time
.
perf_counter
()
self
.
timeout
=
self
.
end
-
self
.
start
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment