summaryrefslogtreecommitdiff
path: root/rpmio/rpmsw.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-04-02 23:26:06 +0000
committerjbj <devnull@localhost>2003-04-02 23:26:06 +0000
commit598457907828b062cedc2cff252aeeab7b988fce (patch)
treec5da5e5a4e73420a8dd6105fe5705d9f41483be5 /rpmio/rpmsw.h
parent95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5 (diff)
downloadlibrpm-tizen-598457907828b062cedc2cff252aeeab7b988fce.tar.gz
librpm-tizen-598457907828b062cedc2cff252aeeab7b988fce.tar.bz2
librpm-tizen-598457907828b062cedc2cff252aeeab7b988fce.zip
Use rpmswEnter/rpmswExit throughout.
CVS patchset: 6730 CVS date: 2003/04/02 23:26:06
Diffstat (limited to 'rpmio/rpmsw.h')
-rw-r--r--rpmio/rpmsw.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/rpmio/rpmsw.h b/rpmio/rpmsw.h
index 48bcf1b20..6ed42e58a 100644
--- a/rpmio/rpmsw.h
+++ b/rpmio/rpmsw.h
@@ -45,18 +45,22 @@ extern "C" {
* @param *sw time stamp
* @return 0 on success
*/
+/*@-exportlocal@*/
/*@null@*/
rpmsw rpmswNow(/*@returned@*/ rpmsw sw)
/*@globals internalState @*/
/*@modifies sw, internalState @*/;
+/*@=exportlocal@*/
/** Return benchmark time stamp difference.
* @param *end end time stamp
* @param *begin begin time stamp
* @return difference in micro-seconds
*/
+/*@-exportlocal@*/
rpmtime_t rpmswDiff(/*@null@*/ rpmsw end, /*@null@*/ rpmsw begin)
/*@*/;
+/*@=exportlocal@*/
/** Return benchmark time stamp overhead.
* @return overhead in micro-seconds
@@ -64,27 +68,28 @@ rpmtime_t rpmswDiff(/*@null@*/ rpmsw end, /*@null@*/ rpmsw begin)
/*@-exportlocal@*/
rpmtime_t rpmswInit(void)
/*@globals internalState @*/
- /*@modifes internalState @*/;
+ /*@modifies internalState @*/;
/*@=exportlocal@*/
/** \ingroup rpmio
* Enter timed operation.
* @param op operation statistics
+ * @param rc -1 clears usec counter
* @return 0 always
*/
-int rpmswEnter(rpmop op)
+int rpmswEnter(rpmop op, ssize_t rc)
/*@globals internalState @*/
- /*@modifes op->count, op->begin, internalState @*/;
+ /*@modifies *op, internalState @*/;
/** \ingroup rpmio
* Exit timed operation.
* @param op operation statistics
* @param rc per-operation data (e.g. bytes transferred)
- * @return 0 always
+ * @return cumulative usecs for operation
*/
-int rpmswExit(rpmop op, ssize_t rc)
+rpmtime_t rpmswExit(rpmop op, ssize_t rc)
/*@globals internalState @*/
- /*@modifes op-bytes, op->usecs, internalState @*/;
+ /*@modifies *op, internalState @*/;
#ifdef __cplusplus
}