core: added more accurate time measurement for called functions

This commit is contained in:
Marcin Kuzminski 2019-07-17 16:28:41 +02:00
parent bc3efc1553
commit 928652312a
20 changed files with 25 additions and 23 deletions

View file

@ -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: