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

Temp: use time.time instead of perf

parent 963cba4f
No related branches found
No related tags found
No related merge requests found
Pipeline #21904 canceled
......@@ -2,7 +2,7 @@ import logging
import requests
from tavern.util import exceptions
from tavern._plugins.rest.request import RestRequest
from time import perf_counter as perf
import time
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 = perf()
start_time = time.time() * 1000.
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