rpm 4.19.92
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
14extern "C" {
15#endif
16
19typedef unsigned long int rpmtime_t;
20
23typedef struct rpmsw_s * rpmsw;
24
27typedef struct rpmop_s * rpmop;
28
31struct rpmsw_s {
32 union {
33 struct timeval tv;
34 unsigned long long int ticks;
35 unsigned long int tocks[2];
36 } u;
37};
38
42struct rpmop_s {
43 struct rpmsw_s begin;
44 int count;
45 size_t bytes;
46 rpmtime_t usecs;
47};
48
55
62rpmtime_t rpmswDiff(rpmsw end, rpmsw begin);
63
68rpmtime_t rpmswInit(void);
69
76int 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 */
rpmtime_t rpmswAdd(rpmop to, rpmop from)
rpmtime_t rpmswExit(rpmop op, ssize_t rc)
rpmtime_t rpmswDiff(rpmsw end, rpmsw begin)
rpmtime_t rpmswInit(void)
int rpmswEnter(rpmop op, ssize_t rc)
rpmtime_t rpmswSub(rpmop to, rpmop from)
rpmsw rpmswNow(rpmsw sw)
Definition rpmsw.h:42
rpmtime_t usecs
Definition rpmsw.h:46
int count
Definition rpmsw.h:44
size_t bytes
Definition rpmsw.h:45
struct rpmsw_s begin
Definition rpmsw.h:43
Definition rpmsw.h:31
union rpmsw_s::@0 u