� M�g���dZddlZdZ ejZdS#e$�r�ddlZddlZddlZddlZddl Z ej dkrlej dd���Z Gd�d ej ��Ze jZeje_e��Ze �eje����d Zd �Z�n�ej �d ��sej �d ��r�ej �d ��r3 ejjZn1#e$rej�d��ZYnwxYwejjZeedd��Zereje_d�Z�n9ejZej e_e j!��Z"da#da$d�Z�n ej ej%�&d��d���j'Z'n:#e($r2ej ej%�&d��d���j'Z'YnwxYwGd�dej ��Z)ej �d��rdZ*npej �d��rdZ*nSej �d��rdZ*n6dej vrdZ*n*ej �d��rej+d��Z*d�Ze��e��z dkr e,d ���YdS#e($rZ-e.d!e/e-��z���dZ-[-wwxYwwxYw)"a monotonic ~~~~~~~~~ This module provides a ``monotonic()`` function which returns the value (in fractional seconds) of a clock which never goes backwards. On Python 3.3 or newer, ``monotonic`` will be an alias of ``time.monotonic`` from the standard library. On older versions, it will fall back to an equivalent implementation: +-------------+----------------------------------------+ | Linux, BSD | ``clock_gettime(3)`` | +-------------+----------------------------------------+ | Windows | ``GetTickCount`` or ``GetTickCount64`` | +-------------+----------------------------------------+ | OS X | ``mach_absolute_time`` | +-------------+----------------------------------------+ If no suitable implementation exists for the current platform, attempting to import this module (or to import from it) will cause a ``RuntimeError`` exception to be raised. Copyright 2014, 2015, 2016 Ori Livneh <ori@wikimedia.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. �N)� monotonic�darwinz/usr/lib/libc.dylibT)� use_errnoc�6�eZdZdZdejfdejffZdS)�mach_timebase_info_data_tz4System timebase info. Defined in <mach/mach_time.h>.�numer�denomN)�__name__� __module__� __qualname__�__doc__�ctypes�c_uint32�_fields_���Y/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/monotonic.pyrr=s/������J�J�$�f�o�6�$�f�o�6�8���rr�e��Ac�f�t��tjztjz }|tz S)�$Monotonic clock, cannot go backward.)�mach_absolute_time�timebaserr �nanoseconds_in_second)� nanosecondss rrrIs'��0�2�2�X�^�C�h�n�T� �"�%:�:�:r�win32�cygwinz kernel32.dll�GetTickCount64c�$�t��dz S)r�@�@)rrrrrris��)�+�+�f�4�4rc���t5t��}|tkr tdz a|atdz}|tz }|dz cddd��S#1swxYwYdS)r�� rN)�get_tick_count_lock� GetTickCount�get_tick_count_last_sample�get_tick_count_wraparounds)�current_sample�final_millisecondss rrrvs��� -�;�;�)5����)�,F�F�F�6�!�;�6�5C�2�-G�2�-M�*�*�.H�H�*�1�F�:�;�;�;�;�;�;�;�;�;�;�;�;����;�;�;�;�;�;s�>A�A�A�c�rtc�6�eZdZdZdejfdejffZdS)�timespecz5Time specification, as described in clock_gettime(3).�tv_sec�tv_nsecN)r r r r r�c_longrrrrr,r,�s/������K�K�%�v�}�5�&�� �6�8���rr,�linuxr!�freebsd��sunos5�bsd��aix� c���t��}tttj|����r5tj��}t |tj|�����|j |j dz zS)rr) r,� clock_gettime�CLOCK_MONOTONICr�pointer� get_errno�OSError�os�strerrorr-r.)�ts�errnos rrr�sc���Z�Z�� ��&�.��2D�2D�E�E�=�"�,�.�.�E�!�%���U�);�);�<�<�<��y�2�:��#5�5�5rzmonotonic() is not monotonic!z,no suitable implementation for this system: )0r �time�__all__r�AttributeErrorr� ctypes.utilr>�sys� threading�platform�CDLL�libc� Structurerr�c_uint64�restyper�mach_timebase_info�byrefr� startswith�cdll�kernel32r=� LoadLibrary�windll�getattrr� c_ulonglongr$r�Lockr#r%r&�util� find_libraryr9� Exceptionr,r:� c_longlong� ValueError�e� RuntimeError�reprrrr�<module>r`sK��&�&�N � � � � ��{U���I�I�I���yU�yU�yU��M�M�M����� �I�I�I��J�J�J�����sU� �<�8� #� #��6�;�4��E�E�E�D� 8� 8� 8� 8� 8�F�,<� 8� 8� 8� "&�!8� �)/�� � &�0�0�2�2�H� � #� #�L�F�L��$:�$:� ;� ;� ;�$)� !� ;� ;� ;� ;� �\� $� $�W� -� -�U 6���1H�1H��1R�1R�U 6��|�&�&�x�0�0� 2�G�%�{�3�H�H���G�G�G�%�{�6�6�~�F�F�H�H�H�G����"�=�1��$�W�X�/?��F�F�N�� ;�)/�);��&�5�5�5�5� (�4� �'-�� �$�&4�i�n�&6�&6�#�-.�*�-.�*� ;� ;� ;� ;�  J� +�� �F�K�,D�,D�S�,I�,I�6:�!<�!<�!<�<I�� ��� J� J� J� +�� �F�K�,D�,D�T�,J�,J�6:�!<�!<�!<�<I�� � � J���� 8� 8� 8� 8� 8�6�+� 8� 8� 8� �|�&�&�w�/�/� 8�"#�����(�(��3�3� 8�"#�����(�(��2�2� 8�"#����#�,�&�&�"#�����(�(��/�/� 8�"3�&�"3�B�"7�"7�� 6� 6� 6� �9�;�;����� $�q� (� (��*�<�=�=� =� )� (� (�� �U�U�U��l�I�D�D�QR�G�G�S�T�T�T�����U����qyU���sq��K�CJ2�4 D�J2�D#� J2�"D#�#AJ2�>/F.�-J2�.4G%�"J2�$G%�%C J2�2K�7K�K�K
Memory