SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
osip_time.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define osip_timerisset(tvp)   ((tvp)->tv_sec || (tvp)->tv_usec)
 
#define osip_timercmp(a, b, CMP)
 
#define osip_timerclear(tvp)   (tvp)->tv_sec = (tvp)->tv_usec = 0
 

Functions

void add_gettimeofday (struct timeval *atv, int ms)
 
void min_timercmp (struct timeval *tv1, struct timeval *tv2)
 
int osip_gettimeofday (struct timeval *tp, void *tz)
 
time_t osip_getsystemtime (time_t *t)
 
void osip_compensatetime (void)
 

Macro Definition Documentation

#define osip_timerclear (   tvp)    (tvp)->tv_sec = (tvp)->tv_usec = 0

Definition at line 63 of file osip_time.h.

#define osip_timercmp (   a,
  b,
  CMP 
)
Value:
(((a)->tv_sec == (b)->tv_sec) ? \
((a)->tv_usec CMP (b)->tv_usec) : \
((a)->tv_sec CMP (b)->tv_sec))

Definition at line 54 of file osip_time.h.

#define osip_timerisset (   tvp)    ((tvp)->tv_sec || (tvp)->tv_usec)

Definition at line 48 of file osip_time.h.

Function Documentation

void add_gettimeofday ( struct timeval *  atv,
int  ms 
)
void min_timercmp ( struct timeval *  tv1,
struct timeval *  tv2 
)
void osip_compensatetime ( void  )
time_t osip_getsystemtime ( time_t *  t)
int osip_gettimeofday ( struct timeval *  tp,
void *  tz 
)