#include <unistd.h>
#include <sys/time.h>
Go to the source code of this file.
§ rpmop
§ rpmsw
§ rpmtime_t
§ rpmswAdd()
Sum statistic counters.
- Parameters
-
to | result statistics |
from | operation statistics |
- Returns
- cumulative usecs for operation
§ rpmswDiff()
Return benchmark time stamp difference.
- Parameters
-
*end | end time stamp |
*begin | begin time stamp |
- Returns
- difference in micro-seconds
§ rpmswEnter()
int rpmswEnter |
( |
rpmop |
op, |
|
|
ssize_t |
rc |
|
) |
| |
Enter timed operation.
- Parameters
-
op | operation statistics |
rc | -1 clears usec counter |
- Returns
- 0 always
§ rpmswExit()
Exit timed operation.
- Parameters
-
op | operation statistics |
rc | per-operation data (e.g. bytes transferred) |
- Returns
- cumulative usecs for operation
§ rpmswInit()
Return benchmark time stamp overhead.
- Returns
- overhead in micro-seconds
§ rpmswNow()
Return benchmark time stamp.
- Parameters
-
- Returns
- 0 on success
§ rpmswSub()
Subtract statistic counters.
- Parameters
-
to | result statistics |
from | operation statistics |
- Returns
- cumulative usecs for operation