|
|
@ -817,6 +817,11 @@ void timeval_to_cgtimer(cgtimer_t *cgt, const struct timeval *tv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
timeval_to_spec(cgt, tv); |
|
|
|
timeval_to_spec(cgt, tv); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cgtimer_to_timeval(struct timeval *tv, const cgtimer_t *cgt) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
timespec_to_val(tv, cgt); |
|
|
|
|
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|
static void dtime_to_timeval(struct timeval *tv, DWORD dtime) |
|
|
|
static void dtime_to_timeval(struct timeval *tv, DWORD dtime) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -845,6 +850,11 @@ void timeval_to_cgtimer(cgtimer_t *cgt, const struct timeval *tv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
timeval_to_dtime(cgt, tv); |
|
|
|
timeval_to_dtime(cgt, tv); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cgtimer_to_timeval(struct timeval *tv, const cgtimer_t *cgt) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dtime_to_timeval(tv, *cgt); |
|
|
|
|
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
void subtime(struct timeval *a, struct timeval *b) |
|
|
|
void subtime(struct timeval *a, struct timeval *b) |
|
|
|