
    .`i`                     "    d Z ddlZddlZddZdS )z(
Provides a timeslice logging decorator
    Nc                       fd}|S )zj
    Logs the execution time of the decorated function.
    Always place it beneath other decorators.
    c                 L     t          j                    fd            }|S )Nc                      t          j                    } | i |}t          j                    |z
  }dj         dj         dn}                    d||           |S )Nz
Function '.'z%s: Elapsed time %.7f secs)timeperf_counter
__module____qualname__debug)	argskwargsstartresultelapsedprefixfuncloggermsgs	         o/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/vllm/logging_utils/log_time.py_wrapperz)logtime.<locals>._inner.<locals>._wrapper   s    %''ET4*6**F'))E1G ; DT_CCt/@CCCC 
 LL5vwGGGM    )	functoolswraps)r   r   r   r   s   ` r   _innerzlogtime.<locals>._inner   sC    				 	 	 	 	 	 
		 r    )r   r   r   s   `` r   logtimer      s)         " Mr   )N)__doc__r   r   r   r   r   r   <module>r      sD              r   