rpm 4.18.2
Data Structures | Typedefs | Functions
rpmsw.h File Reference

Statistics API. More...

#include <unistd.h>
#include <sys/time.h>
Include dependency graph for rpmsw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rpmsw_s
 
struct  rpmop_s
 Cumulative statistics for an operation. More...
 

Typedefs

typedef unsigned long int rpmtime_t
 
typedef struct rpmsw_srpmsw
 
typedef struct rpmop_srpmop
 

Functions

rpmsw rpmswNow (rpmsw sw)
 Return benchmark time stamp.
 
rpmtime_t rpmswDiff (rpmsw end, rpmsw begin)
 Return benchmark time stamp difference.
 
rpmtime_t rpmswInit (void)
 Return benchmark time stamp overhead.
 
int rpmswEnter (rpmop op, ssize_t rc)
 Enter timed operation.
 
rpmtime_t rpmswExit (rpmop op, ssize_t rc)
 Exit timed operation.
 
rpmtime_t rpmswAdd (rpmop to, rpmop from)
 Sum statistic counters.
 
rpmtime_t rpmswSub (rpmop to, rpmop from)
 Subtract statistic counters.
 

Detailed Description

Statistics API.

Definition in file rpmsw.h.