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