rpm 4.20.0 The RPM Package Manager

Loading...
Searching...
No Matches
rpmsw.h
Go to the documentation of this file.
1#ifndef H_RPMSW
2#define H_RPMSW
3
10#include <unistd.h>
11#include <sys/time.h>
12
13#ifdef __cplusplus
14 extern "C" {
15#endif
16
19 typedef unsigned long int rpmtime_t;
20
23 typedef struct rpmsw_s * rpmsw;
24
27 typedef struct rpmop_s * rpmop;
28
31 struct rpmsw_s {
32 union {
33 struct timeval tv;
34 unsigned long long int ticks;
35 unsigned long int tocks[2];
36 } u;
37};
38
42 struct rpmop_s {
43 struct rpmsw_s begin;
44 int count;
45 size_t bytes;
46 rpmtime_t usecs;
47};
48
54 rpmsw rpmswNow(rpmsw sw);
55
62rpmtime_t rpmswDiff(rpmsw end, rpmsw begin);
63
68rpmtime_t rpmswInit(void);
69
76 int rpmswEnter(rpmop op, ssize_t rc);
77
84rpmtime_t rpmswExit(rpmop op, ssize_t rc);
85
92rpmtime_t rpmswAdd(rpmop to, rpmop from);
93
100rpmtime_t rpmswSub(rpmop to, rpmop from);
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* H_RPMSW */
rpmswAdd
rpmtime_t rpmswAdd(rpmop to, rpmop from)
rpmswExit
rpmtime_t rpmswExit(rpmop op, ssize_t rc)
rpmswDiff
rpmtime_t rpmswDiff(rpmsw end, rpmsw begin)
rpmswInit
rpmtime_t rpmswInit(void)
rpmswEnter
int rpmswEnter(rpmop op, ssize_t rc)
rpmswSub
rpmtime_t rpmswSub(rpmop to, rpmop from)
rpmswNow
rpmsw rpmswNow(rpmsw sw)
rpmop_s
Definition rpmsw.h:42
rpmop_s::usecs
rpmtime_t usecs
Definition rpmsw.h:46
rpmop_s::count
int count
Definition rpmsw.h:44
rpmop_s::bytes
size_t bytes
Definition rpmsw.h:45
rpmop_s::begin
struct rpmsw_s begin
Definition rpmsw.h:43
rpmsw_s
Definition rpmsw.h:31
rpmsw_s::u
union rpmsw_s::@0 u