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