annotate include/timeval-utils.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Basic struct timeval utilities.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of the libiberty library.
kono
parents:
diff changeset
5 Libiberty is free software; you can redistribute it and/or
kono
parents:
diff changeset
6 modify it under the terms of the GNU Library General Public
kono
parents:
diff changeset
7 License as published by the Free Software Foundation; either
kono
parents:
diff changeset
8 version 2 of the License, or (at your option) any later version.
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 Libiberty is distributed in the hope that it will be useful,
kono
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
kono
parents:
diff changeset
13 Library General Public License for more details.
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 You should have received a copy of the GNU Library General Public
kono
parents:
diff changeset
16 License along with libiberty; see the file COPYING.LIB. If not,
kono
parents:
diff changeset
17 write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
kono
parents:
diff changeset
18 Boston, MA 02110-1301, USA. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef TIMEVAL_UTILS_H
kono
parents:
diff changeset
21 #define TIMEVAL_UTILS_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #ifdef __cplusplus
kono
parents:
diff changeset
24 extern "C" {
kono
parents:
diff changeset
25 #endif /* __cplusplus */
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* forward decl */
kono
parents:
diff changeset
28 struct timeval;
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 extern void timeval_add (struct timeval *result,
kono
parents:
diff changeset
31 const struct timeval *a, const struct timeval *b);
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 extern void timeval_sub (struct timeval *result,
kono
parents:
diff changeset
34 const struct timeval *a, const struct timeval *b);
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 #ifdef __cplusplus
kono
parents:
diff changeset
37 }
kono
parents:
diff changeset
38 #endif /* __cplusplus */
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 #endif /* TIMEVAL_UTILS_H */