lenskit.logging.Stopwatch ========================= .. py:class:: lenskit.logging.Stopwatch(start=True) :canonical: lenskit.logging._stopwatch.Stopwatch Timer class for recording elapsed wall time in operations. .. py:attribute:: acc_time :type: float | None :value: None .. py:attribute:: start_time :type: float | None :value: None .. py:attribute:: stop_time :type: float | None :value: None .. py:method:: start() .. py:method:: stop() .. py:method:: elapsed(*, accumulated=True) Get the elapsed time. .. py:method:: measure(accumulate = False) Context manager to measure an item, optionally accumulating its time. .. py:method:: __str__() .. py:method:: __repr__()