1*a45ae5f8SJohn Marino /* Basic struct timeval utilities.
2*a45ae5f8SJohn Marino    Copyright (C) 2011 Free Software Foundation, Inc.
3*a45ae5f8SJohn Marino 
4*a45ae5f8SJohn Marino This file is part of the libiberty library.
5*a45ae5f8SJohn Marino Libiberty is free software; you can redistribute it and/or
6*a45ae5f8SJohn Marino modify it under the terms of the GNU Library General Public
7*a45ae5f8SJohn Marino License as published by the Free Software Foundation; either
8*a45ae5f8SJohn Marino version 2 of the License, or (at your option) any later version.
9*a45ae5f8SJohn Marino 
10*a45ae5f8SJohn Marino Libiberty is distributed in the hope that it will be useful,
11*a45ae5f8SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of
12*a45ae5f8SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13*a45ae5f8SJohn Marino Library General Public License for more details.
14*a45ae5f8SJohn Marino 
15*a45ae5f8SJohn Marino You should have received a copy of the GNU Library General Public
16*a45ae5f8SJohn Marino License along with libiberty; see the file COPYING.LIB.  If not,
17*a45ae5f8SJohn Marino write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
18*a45ae5f8SJohn Marino Boston, MA 02110-1301, USA.  */
19*a45ae5f8SJohn Marino 
20*a45ae5f8SJohn Marino #ifndef TIMEVAL_UTILS_H
21*a45ae5f8SJohn Marino #define TIMEVAL_UTILS_H
22*a45ae5f8SJohn Marino 
23*a45ae5f8SJohn Marino #ifdef __cplusplus
24*a45ae5f8SJohn Marino extern "C" {
25*a45ae5f8SJohn Marino #endif /* __cplusplus */
26*a45ae5f8SJohn Marino 
27*a45ae5f8SJohn Marino /* forward decl */
28*a45ae5f8SJohn Marino struct timeval;
29*a45ae5f8SJohn Marino 
30*a45ae5f8SJohn Marino extern void timeval_add (struct timeval *result,
31*a45ae5f8SJohn Marino 			 const struct timeval *a, const struct timeval *b);
32*a45ae5f8SJohn Marino 
33*a45ae5f8SJohn Marino extern void timeval_sub (struct timeval *result,
34*a45ae5f8SJohn Marino 			 const struct timeval *a, const struct timeval *b);
35*a45ae5f8SJohn Marino 
36*a45ae5f8SJohn Marino #ifdef __cplusplus
37*a45ae5f8SJohn Marino }
38*a45ae5f8SJohn Marino #endif /* __cplusplus */
39*a45ae5f8SJohn Marino 
40*a45ae5f8SJohn Marino #endif /* TIMEVAL_UTILS_H */
41