Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

rpmsw.h File Reference

Go to the source code of this file.

Data Structures

struct  rpmsw_s
struct  rpmop_s

Typedefs

typedef unsigned long int rpmtime_t
typedef rpmsw_srpmsw
typedef 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)
rpmtime_t rpmswExit (rpmop op, ssize_t rc)
rpmtime_t rpmswAdd (rpmop to, rpmop from)
rpmtime_t rpmswSub (rpmop to, rpmop from)


Detailed Description

Definition in file rpmsw.h.


Function Documentation

rpmtime_t rpmswDiff rpmsw  end,
rpmsw  begin
 

Return benchmark time stamp difference.

Parameters:
*end end time stamp
*begin begin time stamp
Returns:
difference in micro-seconds

Definition at line 119 of file rpmsw.c.

References rpmsw, rpmsw_cycles, rpmtime_t, rpmsw_s::ticks, rpmsw_s::tv, tvsub(), and rpmsw_s::u.

Referenced by rpmswExit(), and rpmswInit().

rpmtime_t rpmswInit void   ) 
 

Return benchmark time stamp overhead.

Returns:
overhead in micro-seconds

Definition at line 176 of file rpmsw.c.

References rpmsw_cycles, rpmsw_initialized, rpmsw_overhead, rpmsw_type, rpmswDiff(), rpmswNow(), and rpmtime_t.

Referenced by rpmswNow().

rpmsw rpmswNow rpmsw  sw  ) 
 

Return benchmark time stamp.

Parameters:
*sw time stamp
Returns:
0 on success

Definition at line 80 of file rpmsw.c.

References rpmsw, rpmswInit(), rpmsw_s::ticks, rpmsw_s::tv, and rpmsw_s::u.

Referenced by rpmswEnter(), rpmswExit(), and rpmswInit().


Generated on Sun Aug 20 03:17:35 2006 for rpm by  doxygen 1.3.9.1