iperf3-tls/src/timer.h

13 lines
299 B
C
Raw Normal View History

2009-02-24 06:22:58 +00:00
struct timer {
struct timeval begin;
struct timeval end;
int (*expired)(struct timer *timer);
};
struct timer *new_timer(time_t sec, suseconds_t usec);
2009-02-24 06:22:58 +00:00
int delay(int64_t ns);
double timeval_to_double(struct timeval *tv);
double timeval_diff(struct timeval *tv0, struct timeval *tv1);