Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tavern_time_request
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dariusz Kędzierski
tavern_time_request
Commits
77b37f26
Commit
77b37f26
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Temp: use time.time instead of perf"
This reverts commit
a4c3aea4
.
parent
a4c3aea4
No related branches found
No related tags found
No related merge requests found
Pipeline
#21905
failed
4 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tavern_time_request/request.py
+2
-2
2 additions, 2 deletions
tavern_time_request/request.py
with
2 additions
and
2 deletions
tavern_time_request/request.py
+
2
−
2
View file @
77b37f26
...
...
@@ -2,7 +2,7 @@ import logging
import
requests
from
tavern.util
import
exceptions
from
tavern._plugins.rest.request
import
RestRequest
import
time
from
time
import
perf_counter
as
perf
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -10,7 +10,7 @@ class HivemindRequest(RestRequest):
def
run
(
self
):
try
:
# add sent timestamp to each request in perf_counter format
start_time
=
time
.
time
()
*
1000.
start_time
=
perf
()
headers
=
self
.
_request_args
.
get
(
'
headers
'
,
{})
headers
[
'
Sent-At
'
]
=
str
(
start_time
)
self
.
_request_args
[
'
headers
'
]
=
headers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment