Skip to content
Snippets Groups Projects
Commit 77b37f26 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment