
    Mh                     $    d Z  G d d          ZdS )z#Deprecated Stopwatch implementationc                   $    e Zd ZdZd Zd Zd ZdS )	StopwatchzmDeprecated zmq.Stopwatch implementation

    You can use Python's builtin timers (time.monotonic, etc.).
    c                     dd l }|                    dt          d           d| _        dd l}	 |j        | _        d S # t          $ r |j        | _        Y d S w xY w)N    zJzmq.Stopwatch is deprecated. Use stdlib time.monotonic and friends instead   )
stacklevel)warningswarnDeprecationWarning_starttime	monotonic
_monotonicAttributeError)selfr   r   s      S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/zmq/sugar/stopwatch.py__init__zStopwatch.__init__   s}    X 	 	
 	
 	

 	("nDOOO 	( 	( 	("iDOOOO	(s   < AAc                 8    |                                  | _        dS )zStart the counterN)r   r   )r   s    r   startzStopwatch.start   s    oo''    c                 ^    |                                  }t          d|| j        z
  z            S )z'Return time since start in microsecondsg    .A)r   intr   )r   stops     r   r   zStopwatch.stop!   s+      3$,-...r   N)__name__
__module____qualname____doc__r   r   r    r   r   r   r      sK         
( ( ( ( ( (/ / / / /r   r   N)r   r   r   r   r   <module>r      s=    ) )/ / / / / / / / / /r   