diff --git a/search/api.py b/search/api.py index 21c0b2fa..a901eac1 100644 --- a/search/api.py +++ b/search/api.py @@ -103,7 +103,7 @@ def perform_search( "search_time": { "start": search_timer.start_time, "end": search_timer.end_time, - "elapsed": search_timer.elapsed_time, + "elapsed": search_timer.elapsed_time, }, "filter_generation_time": { "start": filter_generation_timer.start_time, diff --git a/search/utils.py b/search/utils.py index f8efff87..12a9e8f0 100644 --- a/search/utils.py +++ b/search/utils.py @@ -68,6 +68,7 @@ def lower_string(self): return self._lower.isoformat() class Timer: + """ Simple timer class to measure elapsed time """ def __init__(self): self._start_time = None @@ -94,4 +95,4 @@ def end_time(self): @property def elapsed_time(self): """ Return the elapsed time """ - return self._end_time - self._start_time \ No newline at end of file + return self._end_time - self._start_time