148fb7bfaSmrg /* Basic struct timeval utilities. 2*b1e83836Smrg Copyright (C) 2011-2022 Free Software Foundation, Inc. 348fb7bfaSmrg 448fb7bfaSmrg This file is part of the libiberty library. 548fb7bfaSmrg Libiberty is free software; you can redistribute it and/or 648fb7bfaSmrg modify it under the terms of the GNU Library General Public 748fb7bfaSmrg License as published by the Free Software Foundation; either 848fb7bfaSmrg version 2 of the License, or (at your option) any later version. 948fb7bfaSmrg 1048fb7bfaSmrg Libiberty is distributed in the hope that it will be useful, 1148fb7bfaSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of 1248fb7bfaSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1348fb7bfaSmrg Library General Public License for more details. 1448fb7bfaSmrg 1548fb7bfaSmrg You should have received a copy of the GNU Library General Public 1648fb7bfaSmrg License along with libiberty; see the file COPYING.LIB. If not, 1748fb7bfaSmrg write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, 1848fb7bfaSmrg Boston, MA 02110-1301, USA. */ 1948fb7bfaSmrg 2048fb7bfaSmrg #ifndef TIMEVAL_UTILS_H 2148fb7bfaSmrg #define TIMEVAL_UTILS_H 2248fb7bfaSmrg 2348fb7bfaSmrg #ifdef __cplusplus 2448fb7bfaSmrg extern "C" { 2548fb7bfaSmrg #endif /* __cplusplus */ 2648fb7bfaSmrg 2748fb7bfaSmrg /* forward decl */ 2848fb7bfaSmrg struct timeval; 2948fb7bfaSmrg 3048fb7bfaSmrg extern void timeval_add (struct timeval *result, 3148fb7bfaSmrg const struct timeval *a, const struct timeval *b); 3248fb7bfaSmrg 3348fb7bfaSmrg extern void timeval_sub (struct timeval *result, 3448fb7bfaSmrg const struct timeval *a, const struct timeval *b); 3548fb7bfaSmrg 3648fb7bfaSmrg #ifdef __cplusplus 3748fb7bfaSmrg } 3848fb7bfaSmrg #endif /* __cplusplus */ 3948fb7bfaSmrg 4048fb7bfaSmrg #endif /* TIMEVAL_UTILS_H */ 41