+
    Ki  c                   s&    R t ^ RIt ! R R4      tR# )zTimer moduleNc                   sF   a  ] tR t^t o RtR tR tR t]R 4       t	Rt
V tR# )TimerzSimple Timer class to time codec                s0    R V n         R V n        RV n        R # )NF)_start_endfinishedself   &6/usr/lib/python3.14/site-packages/lutris/util/timer.py__init__ZTimer.__init__
   s    	    c                sV    RV n         \        P                  ! 4       V n        RV n        R# )zStarts the timerNF)r   time	monotonicr   r   r   r   r   startZTimer.start   s    	nn&r	   c                sH    \         P                  ! 4       V n        RV n        R# )zEnds the timerTN)r
   r   r   r   r   r   r   endZ	Timer.end   s    NN$	r	   c                s    V P                   '       g   ^ # V P                  '       g)   \        P                  ! 4       V P                   ,
          pV# V P                  V P                   ,
          pV# )z&Return the total duration of the timer)r   r   r
   r   r   )r   Z	_durations   & r   durationZTimer.duration   sP     {{{}}}(4;;6I  		DKK/Ir	   )r   r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__r   r   r   Zpropertyr   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r    r       s+     )

 
 
r	   r    )r   r
   r    ) r	   r   <module>r      s      r	   