File: //lib64/python3.6/site-packages/zmq/sugar/__pycache__/stopwatch.cpython-36.opt-1.pyc
3
VS�_� � @ s d Z G dd� de�ZdS )z#Deprecated Stopwatch implementationc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) � StopwatchzmDeprecated zmq.Stopwatch implementation
You can use Python's builtin timers (time.monotonic, etc.).
c C sT dd l }|jdtdd� d| _dd l}y|j| _W n tk
rN |j| _Y nX d S )N� zJzmq.Stopwatch is deprecated. Use stdlib time.monotonic and friends instead� )�
stacklevel)�warnings�warn�DeprecationWarning�_start�timeZ monotonic�
_monotonic�AttributeError)�selfr r � r
�!/usr/lib64/python3.6/stopwatch.py�__init__ s
zStopwatch.__init__c C s | j � | _dS )zStart the counterN)r
r )r r
r
r �start s zStopwatch.startc C s | j � }td|| j �S )z'Return time since start in microsecondsg ��.A)r
�intr )r �stopr
r
r r s zStopwatch.stopN)�__name__�
__module__�__qualname__�__doc__r r r r
r
r
r r s r N)r �objectr r
r
r
r �<module> s