def stop(self, k: str) -> float:
        """Stop the timer for the given key, and report the elapsed time"""
        try:
            elapsed_time = self._stop(k)
            self.add_time(k, elapsed_time)
            return elapsed_time
        except TimerError:
            logger.warning(f"timer {k} stopped incorrectly. Time not recorded.")
Stop the timer for the given key, and report the elapsed time
src/marqo/tensor_search/telemetry.py