148596154Schristos /* Basic struct timeval utilities.
2*1424dfb3Schristos    Copyright (C) 2011-2020 Free Software Foundation, Inc.
348596154Schristos 
448596154Schristos This file is part of the libiberty library.
548596154Schristos Libiberty is free software; you can redistribute it and/or
648596154Schristos modify it under the terms of the GNU Library General Public
748596154Schristos License as published by the Free Software Foundation; either
848596154Schristos version 2 of the License, or (at your option) any later version.
948596154Schristos 
1048596154Schristos Libiberty is distributed in the hope that it will be useful,
1148596154Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of
1248596154Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1348596154Schristos Library General Public License for more details.
1448596154Schristos 
1548596154Schristos You should have received a copy of the GNU Library General Public
1648596154Schristos License along with libiberty; see the file COPYING.LIB.  If not,
1748596154Schristos write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
1848596154Schristos Boston, MA 02110-1301, USA.  */
1948596154Schristos 
2048596154Schristos #ifndef TIMEVAL_UTILS_H
2148596154Schristos #define TIMEVAL_UTILS_H
2248596154Schristos 
2348596154Schristos #ifdef __cplusplus
2448596154Schristos extern "C" {
2548596154Schristos #endif /* __cplusplus */
2648596154Schristos 
2748596154Schristos /* forward decl */
2848596154Schristos struct timeval;
2948596154Schristos 
3048596154Schristos extern void timeval_add (struct timeval *result,
3148596154Schristos 			 const struct timeval *a, const struct timeval *b);
3248596154Schristos 
3348596154Schristos extern void timeval_sub (struct timeval *result,
3448596154Schristos 			 const struct timeval *a, const struct timeval *b);
3548596154Schristos 
3648596154Schristos #ifdef __cplusplus
3748596154Schristos }
3848596154Schristos #endif /* __cplusplus */
3948596154Schristos 
4048596154Schristos #endif /* TIMEVAL_UTILS_H */
41