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-06-26 00:55:56 +00:00
|
|
|
|
2009-02-24 06:22:58 +00:00
|
|
|
int delay(int64_t ns);
|
2009-06-26 00:55:56 +00:00
|
|
|
|
|
|
|
double timeval_to_double(struct timeval *tv);
|
|
|
|
|
|
|
|
double timeval_diff(struct timeval *tv0, struct timeval *tv1);
|