
    <h                         S r SSKr SSKr\b  \" \S5      (       a  S rS rS rS rO\R                  =r=rrS rS	 r
S
 rS rg! \ a    Sr NEf = f)z&
Utilities for timing code execution.
    N	getrusagec                  P    [         R                  " [         R                  5      S   $ )zclocku() -> 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     gC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\IPython/utils/timing.pyclockur            !!("6"67::r	   c                  P    [         R                  " [         R                  5      S   $ )zclocks() -> 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                  \    [         R                  " [         R                  5      SS u  pX-   $ )zclock() -> 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6r:s
r	   c                  P    [         R                  " [         R                  5      SS $ )z[clock2() -> (t_user,t_system)

Similar to clock(), but return a tuple of user/system times.Nr   r   r   r	   r
   clock2r   ;   s"     !!("6"67;;r	   c                  0    [         R                  " 5       S4$ )z]Under 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''r	   c                    [        U 5      n U S:  d   S5       eU S:X  a   [        5       nU" U0 UD6n[        5       U-
  nO=[        U S-
  5      n[        5       nU H
  o" U0 UD6  M     U" U0 UD6n[        5       U-
  nX`-  n	XiU4$ )a  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   zreps must be >= 1)intr   range)
repsfuncargskwstartouttot_timerngdummyav_times
             r
   timings_outr'   M   s     t9D!8(((8QwD275=DFmE$*r*SD275=oGCr	   c                 &    [        X/UQ70 UD6SS $ )ztimings(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    s       r
   timingsr*   j   s      t,$,,Qq11r	   c                 (    [        SU /UQ70 UD6S   $ )ztiming(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    s      r
   timingr,   t   s      q)t)b)!,,r	   )__doc__r   r   ModuleNotFoundErrorhasattrr   r   r   r   r   r'   r*   r,   r   r	   r
   <module>r0      s    
 GHk::;;< #///F/Ve( :2-u  Hs   A AA