| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�e� � � � d Z ddlZ ddlZe� eed� r
d� Zd� Zd� Zd� Znej xZxZZd� Zd � Z
d
� Zd� Zy# e$ r dZY �>w xY w)z&
Utilities for timing code execution.
� N� getrusagec �N � t j t j � d S )z�clocku() -> floating point number
Return the *USER* CPU time in seconds since the start of the process.
This is done via a call to resource.getrusage, so it avoids the
wraparound problems in time.clock().r ��resourcer �RUSAGE_SELF� � �6/usr/lib/python3/dist-packages/IPython/utils/timing.py�clockur � � � �!�!�(�"6�"6�7��:�:r c �N � t j t j � d S )z�clocks() -> floating point number
Return the *SYSTEM* CPU time in seconds since the start of the process.
This is done via a call to resource.getrusage, so it avoids the
wraparound problems in time.clock().� r r r r
�clocksr ( r r c �^ � t j t j � dd \ } }| |z S )z�clock() -> floating point number
Return the *TOTAL USER+SYSTEM* CPU time in seconds since the start of
the process. This is done via a call to resource.getrusage, so it
avoids the wraparound problems in time.clock().N� r )�u�ss r
�clockr 1 s. � � � � ��!5�!5�6�r��:���!���s�
r c �N � t j t j � dd S )zcclock2() -> (t_user,t_system)
Similar to clock(), but return a tuple of user/system times.Nr r r r r
�clock2r ; s"