core: added more accurate time measurement for called functions
This commit is contained in:
parent
bc3efc1553
commit
928652312a
20 changed files with 25 additions and 23 deletions
|
|
@ -101,7 +101,7 @@ def search(request, apiuser, search_query, search_type, page_limit=Optional(10),
|
|||
searcher.cleanup()
|
||||
|
||||
if not search_result['error']:
|
||||
data['execution_time'] = '%s results (%.3f seconds)' % (
|
||||
data['execution_time'] = '%s results (%.4f seconds)' % (
|
||||
search_result['count'],
|
||||
search_result['runtime'])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue