U
    祡c                     @   sD   d Z ddlmZ ddlZddlmZ ejd
eed ddd	ZdS )z-
Timer context manager, only used in debug.

    )timeN)	Generatorr   )NNN)subjectreturnc                 c   s8   t  }dV  t  | }|d }t|  d|dd dS )z0print the elapsed time. (only used in debugging)Ni  z	 elapsed z.1fms)r   print)r   startelapsedZ
elapsed_ms r
   //tmp/pip-unpacked-wheel-qkhzhrww/rich/_timer.pytimer   s
    
r   )r   )__doc__r   
contextlibtypingr   contextmanagerstrr   r
   r
   r
   r   <module>   s
   