From a4270020addc324fb60d2b1b446b41bc31e3baf8 Mon Sep 17 00:00:00 2001 From: Lucas Castro Date: Wed, 10 Jan 2024 22:33:44 -0300 Subject: Import Upstream version 1.0.4 --- timecalc.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 timecalc.h (limited to 'timecalc.h') diff --git a/timecalc.h b/timecalc.h new file mode 100644 index 0000000..d3c80ad --- /dev/null +++ b/timecalc.h @@ -0,0 +1,22 @@ +/* + + (C) 2011 Mika Ilmaranta + +*/ + +#ifndef __TIMECALC_H__ +#define __TIMECALC_H__ + +#include +#include + +#define TIMEVAL_DIFF_CMP_GT (0) +#define TIMEVAL_DIFF_CMP_LT (1) + +int timeval_diff_cmp(struct timeval *a, struct timeval *b, int operation, time_t sec, suseconds_t usec); +long timeval_diff(struct timeval *a, struct timeval *b); +void timeval_add(struct timeval *a, time_t sec, suseconds_t usec); + +#endif + +/* EOF */ -- cgit v1.2.3