
                         2    S SK Jr  S SKrSr " S S\5      rg)    )unicode_literalsN)TimeItc                   *    \ rS rSrSrS rS rS rSrg)r   	   z
Context manager that times the duration of the code body.
The `duration` attribute will contain the execution time in seconds.
c                     S U l         g N)durationselfs    1lib/third_party/prompt_toolkit/eventloop/utils.py__init__TimeIt.__init__   s	        c                 :    [         R                   " 5       U l        U $ r   )timestartr
   s    r   	__enter__TimeIt.__enter__   s    YY[
r   c                 t    [         R                   " 5       U l        U R                  U R                  -
  U l        g r   )r   endr   r	   )r   argss     r   __exit__TimeIt.__exit__   s#    99;4::-r   )r	   r   r   N)	__name__
__module____qualname____firstlineno____doc__r   r   r   __static_attributes__ r   r   r   r   	   s    .r   r   )
__future__r   r   __all__objectr   r    r   r   <module>r$      s    ' 
.V .r   