o
    QD©iC  ã                   @   s*   d dl mZ dd„ Zdd„ Zd
dd„Zd	S )é    ©Údefault_timerc                   C   s   t ƒ S )a  Returns some representation of the current time.

    This wrapper is meant to take advantage of a higher time
    resolution when available. Thus, its return value should be
    treated as an opaque object. It can be compared to the current
    time with TimeSince().
    r   © r   r   úP/var/www/Datamplify/venv/lib/python3.10/site-packages/django_prometheus/utils.pyÚTime   s   r   c                 C   s
   t ƒ |  S )z{Compares a value returned by Time() to the current time.

    Returns:
      the time since t, in fractional seconds.

    r   )Útr   r   r   Ú	TimeSince   s   
r   Tc                    sB   |s‡ fdd„t ||| ƒD ƒS dg‡ fdd„t ||| ƒD ƒ S )z@Returns a list of count powers of logbase (from logbase**lower).c                    ó   g | ]}ˆ | ‘qS r   r   ©Ú.0Úi©Úlogbaser   r   Ú
<listcomp>   ó    zPowersOf.<locals>.<listcomp>r   c                    r	   r   r   r
   r   r   r   r      r   )Úrange)r   ÚcountÚlowerÚinclude_zeror   r   r   ÚPowersOf   s   "r   N)r   T)Útimeitr   r   r   r   r   r   r   r   Ú<module>   s    
