
    i                         d dl Z d dlZd dlmZ d dlmZmZmZmZm	Z	  e j                  e      Z e	d      Z ed      Zd
dedeeeef   geeef   f   fdZ	 d
dedeeeeeeef   f   geeeeeef   f   f   fd	Zy)    N)wraps)AnyCallable	Coroutine	ParamSpecTypeVarRPadditional_textreturnc                 `     dt         t        t        f   dt         t        t        f   f fd}|S )Nfuncr   c                      t               dt        j                  dt        j                  dt        f fd       }|S )Nargskwargsr   c                      t        j                          } | i |}t        j                          |z
  }t        j                   d|dd       |S Nz Execution time: z.2fz secondstimeloggerdebugr   r   
start_timeresultexecution_timer   r   s        D/Users/mibo/.openclaw/workspace/data/TuriX-CUA/src/utils/__init__.pywrapperz7time_execution_sync.<locals>.decorator.<locals>.wrapper   sP    		:$!&!6IIK*,>	<<?##4^C4HQR
=    r   r
   r   r   r	   r   r   r   s   ` r   	decoratorz&time_execution_sync.<locals>.decorator   s=    ;QVV qxx A   
.r   )r   r
   r	   r   r!   s   ` r   time_execution_syncr#      s.    	Xad^ 	A 	 	r   c           	           dt         t        t        t        t        t        f   f   dt         t        t        t        t        t        f   f   f fd}|S )Nr   r   c                      t               dt        j                  dt        j                  dt        f fd       }|S )Nr   r   r   c                     K   t        j                          } | i | d {   }t        j                          |z
  }t        j                   d|dd       |S 7 9wr   r   r   s        r   r   z8time_execution_async.<locals>.decorator.<locals>.wrapper   s\     		:'''6IIK*,>	<<?##4^C4HQR
= (s    AA:Ar   r    s   ` r   r!   z'time_execution_async.<locals>.decorator   s=    ;166 QXX !   
.r   )r   r
   r   r   r	   r"   s   ` r   time_execution_asyncr'      sL    	Xa3Q;!778 	XaSVX[]^S^I_F_=` 	 	r   ) )loggingr   	functoolsr   typingr   r   r   r   r   	getLogger__name__r   r	   r
   strr#   r'    r   r   <module>r0      s       ? ?			8	$CLcN hA?OQYZ[]^Z^Q_?_6`   x9S#q[1123Xa3PSUV;AW>W5XXYr   