Changed time to duration in libXML backend
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user