11debfc3dSmrg /* Basic struct timeval utilities. 2*8feb0f0bSmrg Copyright (C) 2011-2020 Free Software Foundation, Inc. 31debfc3dSmrg 41debfc3dSmrg This file is part of the libiberty library. 51debfc3dSmrg Libiberty is free software; you can redistribute it and/or 61debfc3dSmrg modify it under the terms of the GNU Library General Public 71debfc3dSmrg License as published by the Free Software Foundation; either 81debfc3dSmrg version 2 of the License, or (at your option) any later version. 91debfc3dSmrg 101debfc3dSmrg Libiberty is distributed in the hope that it will be useful, 111debfc3dSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of 121debfc3dSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 131debfc3dSmrg Library General Public License for more details. 141debfc3dSmrg 151debfc3dSmrg You should have received a copy of the GNU Library General Public 161debfc3dSmrg License along with libiberty; see the file COPYING.LIB. If not, 171debfc3dSmrg write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, 181debfc3dSmrg Boston, MA 02110-1301, USA. */ 191debfc3dSmrg 201debfc3dSmrg #ifndef TIMEVAL_UTILS_H 211debfc3dSmrg #define TIMEVAL_UTILS_H 221debfc3dSmrg 231debfc3dSmrg #ifdef __cplusplus 241debfc3dSmrg extern "C" { 251debfc3dSmrg #endif /* __cplusplus */ 261debfc3dSmrg 271debfc3dSmrg /* forward decl */ 281debfc3dSmrg struct timeval; 291debfc3dSmrg 301debfc3dSmrg extern void timeval_add (struct timeval *result, 311debfc3dSmrg const struct timeval *a, const struct timeval *b); 321debfc3dSmrg 331debfc3dSmrg extern void timeval_sub (struct timeval *result, 341debfc3dSmrg const struct timeval *a, const struct timeval *b); 351debfc3dSmrg 361debfc3dSmrg #ifdef __cplusplus 371debfc3dSmrg } 381debfc3dSmrg #endif /* __cplusplus */ 391debfc3dSmrg 401debfc3dSmrg #endif /* TIMEVAL_UTILS_H */ 41