10 return t->tv_sec + t->tv_usec / 1000000.0;
16 return (int32_t)(ntohl (s[0])) + (int32_t)(ntohl (s[1])) / 1000000.0;
24 d[0] = htonl ((int32_t)s);
25 d[1] = htonl ((int32_t)(u * 1000000.0));
29 tv2net (int32_t* d,
struct timeval *t)
31 d[0] = htonl ((int32_t)t->tv_sec);
32 d[1] = htonl ((int32_t)t->tv_usec);
void ts2net(int32_t *d, double t)
double net2ts(int32_t *s)
void tv2net(int32_t *d, struct timeval *t)
double tv2ts(struct timeval *t)