29 #if defined(_WIN32_WCE)
32 unsigned short millitm;
44 void min_timercmp (
struct timeval *tv1,
struct timeval *tv2);
47 #if !defined(timerisset)
48 #define osip_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
50 #define osip_timerisset(tvp) timerisset(tvp)
53 #if !defined(timercmp)
54 #define osip_timercmp(a, b, CMP) \
55 (((a)->tv_sec == (b)->tv_sec) ? \
56 ((a)->tv_usec CMP (b)->tv_usec) : \
57 ((a)->tv_sec CMP (b)->tv_sec))
59 #define osip_timercmp(tvp, uvp, cmp) timercmp(tvp,uvp,cmp)
62 #if !defined(timerclear)
63 #define osip_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
65 #define osip_timerclear(tvp) timerclear(tvp)
void osip_compensatetime(void)
void min_timercmp(struct timeval *tv1, struct timeval *tv2)
time_t osip_getsystemtime(time_t *t)
int osip_gettimeofday(struct timeval *tp, void *tz)
void add_gettimeofday(struct timeval *atv, int ms)