/* $Id: ixtime.h,v 1.1 2004/04/27 06:31:52 eric Exp $ */

#ifndef __IXTIME_H__
#define __IXTIME_H__

void timeval_add (struct timeval *res, struct timeval *t1, struct timeval *t2);
void timespec_add (struct timespec *res, struct timespec *t1, struct timespec *t2);
int timeval_subtract (struct timeval *result, struct timeval *x, struct timeval *y);
int timespec_subtract (struct timespec *result, struct timespec *x, struct timespec *y);
long timeval_to_ms (struct timeval *tv);

#endif
