
    rZhb                     8    d Z ddlmZ ddlmZ eddefd       Zy)zfor timing code blocks    )contextmanager)timemessagec              #   r   K   t               }d t        | j                  t               |z
               yw)zzA function to be used with `with` to time a block of code
	
	Example:
	```python
	with timer():
		pass  # some code
	```
	N)r   printformat)r   starts     ^/mounts/lovelace/software/anaconda3/envs/py312/lib/python3.12/site-packages/epicstuff/timer.pytimerr      s)      
w~~dfun%&s   57N)zTime elapsed: {} seconds)__doc__
contextlibr   r   strr        r
   <module>r      s)     %  '3 ' 'r   