Classes | Functions

Performance Timers API
[General Utility Libraries]

A set of simple timers (and time objects) used to quickly generate information about how the code is performing. More...

Collaboration diagram for Performance Timers API:

Classes

struct  perf::time_t
 yes, my own time_t for convenience in the perf library More...
class  perf::Timer
 Timer class -- just throw one of these on the stack with a unique name. More...
class  perf::DebugTimer

Functions

 perf::time_t::time_t (void) throw ()
void perf::time_t::increment (IN const time_t &t) throw ()
void perf::time_t::decrement (IN const time_t &t) throw ()
bool perf::time_t::isGreaterThan (IN const time_t &t) const throw ()
double perf::time_t::getSeconds (void) const throw ()
long perf::time_t::getMicroseconds (void) const throw ()
void perf::time_t::clear (void) throw ()
void perf::time_t::set (IN long in_sec, IN long in_usec) throw ()
 perf::Timer::~Timer (void)
 perf::DebugTimer::~DebugTimer (void) throw ()



time_t perf::getNow (void) throw ()
 return time_t object containing current time
void perf::enableTimers (IN bool enabled) throw ()
 you can disable the timing system it is better to remove verbose timers, however!
void perf::getTimingSummary (OUT std::string &)
 return a string containing (human-readable) formatted timing information
void perf::dumpTimingSummary (IO std::ostream &)
 dumps timing summary to the given stream

Detailed Description

A set of simple timers (and time objects) used to quickly generate information about how the code is performing.


Function Documentation

perf::time_t::time_t ( void   )  throw () [inline, inherited]

Definition at line 69 of file perf.h.

void perf::time_t::increment ( IN const time_t t  )  throw () [inline, inherited]

Definition at line 71 of file perf.h.

void perf::time_t::decrement ( IN const time_t t  )  throw () [inline, inherited]

Definition at line 82 of file perf.h.

bool perf::time_t::isGreaterThan ( IN const time_t t  )  const throw () [inline, inherited]

Definition at line 114 of file perf.h.

double perf::time_t::getSeconds ( void   )  const throw () [inline, inherited]

Definition at line 122 of file perf.h.

long perf::time_t::getMicroseconds ( void   )  const throw () [inline, inherited]

Definition at line 126 of file perf.h.

void perf::time_t::clear ( void   )  throw () [inline, inherited]

Definition at line 130 of file perf.h.

void perf::time_t::set ( IN long  in_sec,
IN long  in_usec 
) throw () [inline, inherited]

Definition at line 134 of file perf.h.

perf::Timer::~Timer ( void   )  [inherited]

Definition at line 144 of file perf.cpp.

perf::DebugTimer::~DebugTimer ( void   )  throw () [inherited]

Definition at line 170 of file perf.cpp.

time_t perf::getNow ( void   )  throw ()

return time_t object containing current time

void perf::enableTimers ( IN bool  enabled  )  throw ()

you can disable the timing system it is better to remove verbose timers, however!

TODO: remove this function altogether?

void perf::getTimingSummary ( OUT std::string &  out  ) 

return a string containing (human-readable) formatted timing information

void perf::dumpTimingSummary ( IO std::ostream &  stream  ) 

dumps timing summary to the given stream