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