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