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