Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/utils/__pycache__/timing.cpython-39.pyc
Ðазад
a o�h� � @ s� d Z ddlZzddlZW n ey. dZY n0 edurdeed�rddd� Zdd� Zdd � Zd d� Znej Z ZZdd� Zd d� Z dd� Zdd� ZdS )z& Utilities for timing code execution. � N� getrusagec C s t �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 ZRUSAGE_SELF� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/utils/timing.py�clocku s r c C s t �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 r �clocks( s r c C s t �t j�dd� \} }| | 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�sr r r �clock1 s r c C s t �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 r �clock2; s r c C s t �� dfS )zeUnder windows, system CPU time can't be measured. This just returns process_time() and zero.g )�time�process_timer r r r r F s c O s� t | �} | dksJ d��| dkr@t� }||i |��}t� | }nBt| d �}t� }|D ]}||i |�� qV||i |��}t� | }|| } || |fS )a0 timings_out(reps,func,*args,**kw) -> (t_total,t_per_call,output) Execute a function reps times, return a tuple with the elapsed total CPU time in seconds, the time per call and the function's output. Under Unix, the return value is the sum of user+system time consumed by the process, computed via the resource module. This prevents problems related to the wraparound effect which the time.clock() function has. Under Windows the return value is in wall clock seconds. See the documentation for the time module for more details.r zreps must be >= 1)�intr �range) �reps�func�args�kw�start�outZtot_time�rng�dummyZav_timer r r �timings_outM s r c O s t | |g|�R i |��dd� S )z�timings(reps,func,*args,**kw) -> (t_total,t_per_call) Execute a function reps times, return a tuple with the elapsed total CPU time in seconds and the time per call. These are just the first two values in timings_out().r r �r )r r r r r r r �timingsj s r c O s t d| g|�R i |��d S )z�timing(func,*args,**kw) -> t_total Execute a function once, return the elapsed total CPU time in seconds. This is just the first value in timings_out().r r r )r r r r r r �timingt s r ) �__doc__r r �ModuleNotFoundError�hasattrr r r r r r r r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка