Changed time to duration in libXML backend

This commit is contained in:
2023-06-07 13:15:50 +02:00
parent 8e93ab5bdb
commit 40a8f2de34

View File

@@ -54,7 +54,7 @@ def process_xml(request: request, type: str) -> str:
code = 400
finally:
exec_time = (time.time_ns() - start) / 10**6
response_json['time'] = f"{exec_time:.03f}"
response_json['duration'] = f"{exec_time:.03f}"
response_json['processor'] = "libxml2 over lxml"
return json.dumps(response_json), code