rpm 6.1.90
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
9
10#include <unistd.h>
11#include <sys/time.h>
12#include <rpm/rpmutil.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
20typedef unsigned long int rpmtime_t;
21
24typedef struct rpmsw_s * rpmsw;
25
28typedef struct rpmop_s * rpmop;
29
32struct rpmsw_s {
33 union {
34 struct timeval tv;
35 unsigned long long int ticks;
36 unsigned long int tocks[2];
37 } u;
38};
39
43struct rpmop_s {
44 struct rpmsw_s begin;
45 int count;
46 size_t bytes;
47 rpmtime_t usecs;
48};
49
55RPM_PUBLIC_API
56rpmsw rpmswNow(rpmsw sw);
57
64RPM_PUBLIC_API
65rpmtime_t rpmswDiff(rpmsw end, rpmsw begin);
66
71RPM_PUBLIC_API
72rpmtime_t rpmswInit(void);
73
80RPM_PUBLIC_API
81int rpmswEnter(rpmop op, ssize_t rc);
82
89RPM_PUBLIC_API
90rpmtime_t rpmswExit(rpmop op, ssize_t rc);
91
98RPM_PUBLIC_API
99rpmtime_t rpmswAdd(rpmop to, rpmop from);
100
107RPM_PUBLIC_API
108rpmtime_t rpmswSub(rpmop to, rpmop from);
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif /* H_RPMSW */
RPM_PUBLIC_API rpmtime_t rpmswInit(void)
RPM_PUBLIC_API rpmtime_t rpmswAdd(rpmop to, rpmop from)
RPM_PUBLIC_API int rpmswEnter(rpmop op, ssize_t rc)
RPM_PUBLIC_API rpmtime_t rpmswSub(rpmop to, rpmop from)
RPM_PUBLIC_API rpmsw rpmswNow(rpmsw sw)
RPM_PUBLIC_API rpmtime_t rpmswExit(rpmop op, ssize_t rc)
RPM_PUBLIC_API rpmtime_t rpmswDiff(rpmsw end, rpmsw begin)
Definition rpmsw.h:43
rpmtime_t usecs
Definition rpmsw.h:47
int count
Definition rpmsw.h:45
size_t bytes
Definition rpmsw.h:46
struct rpmsw_s begin
Definition rpmsw.h:44
Definition rpmsw.h:32
union rpmsw_s::@276340046214157261273317026030334127213257354037 u