o
    e	                     @   s   d dl Z d dlZzPd dlZdZdZe jdrdZejZ	ne jdr-dZdZd	Zej
Z	ne jd
r9dZej
Z	neG dd dejZeeZeeeZejeege_W n   dZY dd Zeedskee_dd Zdd ZdS )    Nz
librt.so.1clock_gettimelinux   netbsdz
libc.so.12__clock_gettime50   freebsd   c                   @   s   e Zd ZdefdejfgZdS )timespectv_sectv_nsecN)__name__
__module____qualname__time_tctypesc_long_fields_ r   r   -/usr/lib/python3/dist-packages/ovs/timeval.pyr
   *   s    r
   c                  C   s>   t st S t } ttt| dkr| j| jd  S t S )Nr   g&.>)	librttimer
   r   CLOCK_MONOTONICr   pointerr   r   )tr   r   r   	monotonic8   s   r   c                   C   s   t  d S )z Returns the system's monotonic time if possible, otherwise returns the
    current time as the amount of time since the epoch, in milliseconds, as a
    float.g     @@)r   r   r   r   r   r   msecH   s   r   c                   C   s   d S )Nr   r   r   r   r   postforkO   s   r   )sysr   r   LIBRTclock_gettime_nameplatform
startswithr   r   r   c_int64	Exception	Structurer
   CDLLr   getattrr   c_intPOINTERargtypesr   hasattrr   r   r   r   r   r   <module>   s:   


