Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::utility::IndriTimer Class Reference

#include <IndriTimer.hpp>

List of all members.

Public Member Functions

 IndriTimer ()
void start ()
 start the timer

void stop ()
 pause the timer

void reset ()
 reset the timer

UINT64 elapsedTime () const
 elapsed time since started as an unsigned 64 bit integer

void printElapsedSeconds (std::ostream &out) const
void printElapsedMicroseconds (std::ostream &out) const

Static Public Member Functions

UINT64 currentTime ()
 the current time as an unsigned 64 bit integer


Private Attributes

UINT64 _elapsed
 when did we start.

UINT64 _start
bool _stopped


Detailed Description

Utility class for printing timing statistics to a stream


Constructor & Destructor Documentation

indri::utility::IndriTimer::IndriTimer  ) 
 


Member Function Documentation

UINT64 indri::utility::IndriTimer::currentTime  )  [static]
 

the current time as an unsigned 64 bit integer

UINT64 indri::utility::IndriTimer::elapsedTime  )  const
 

elapsed time since started as an unsigned 64 bit integer

void indri::utility::IndriTimer::printElapsedMicroseconds std::ostream &  out  )  const
 

Print elapsed microseconds to an output stream.

Parameters:
out the stream to print to.

void indri::utility::IndriTimer::printElapsedSeconds std::ostream &  out  )  const
 

Print elapsed seconds to an output stream.

Parameters:
out the stream to print to.

void indri::utility::IndriTimer::reset  ) 
 

reset the timer

void indri::utility::IndriTimer::start  ) 
 

start the timer

void indri::utility::IndriTimer::stop  ) 
 

pause the timer


Member Data Documentation

UINT64 indri::utility::IndriTimer::_elapsed [private]
 

when did we start.

UINT64 indri::utility::IndriTimer::_start [private]
 

bool indri::utility::IndriTimer::_stopped [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:04 2010 for Lemur by doxygen 1.3.4