timeval-utils.h 1.3 KB

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