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