o
    Zh                     @   s   d Z G dd dZdS )z#Deprecated Stopwatch implementationc                   @   s(   e Zd ZdZdd Zdd Zdd ZdS )		StopwatchzmDeprecated zmq.Stopwatch implementation

    You can use Python's builtin timers (time.monotonic, etc.).
    c                 C   sR   dd l }|jdtdd d| _dd l}z|j| _W d S  ty(   |j| _Y d S w )N    zJzmq.Stopwatch is deprecated. Use stdlib time.monotonic and friends instead   )
stacklevel)warningswarnDeprecationWarning_starttime	monotonic
_monotonicAttributeError)selfr   r	    r   J/var/www/html/lang_env/lib/python3.10/site-packages/zmq/sugar/stopwatch.py__init__   s   zStopwatch.__init__c                 C   s   |   | _dS )zStart the counterN)r   r   )r   r   r   r   start   s   zStopwatch.startc                 C   s   |   }td|| j  S )z'Return time since start in microsecondsg    .A)r   intr   )r   stopr   r   r   r   !   s   zStopwatch.stopN)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s
    r   N)r   r   r   r   r   r   <module>   s    