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