stopwatch Class Reference

#include <stopwatch.hh>

List of all members.

Public Member Functions

 stopwatch ()
void reset ()
void start ()
void stop ()
long seconds () const
long useconds () const
bool stopped () const

Private Member Functions

void checkpoint_ () const

Private Attributes

timeval tv1 tv2
timezone tz
long diffsec
long diffusec
bool stopped_

Friends

std::ostream & operator<< (std::ostream &, const stopwatch &)


Constructor & Destructor Documentation

stopwatch::stopwatch  ) 
 


Member Function Documentation

void stopwatch::checkpoint_  )  const [private]
 

void stopwatch::reset  ) 
 

long stopwatch::seconds  )  const
 

void stopwatch::start  ) 
 

void stopwatch::stop  ) 
 

bool stopwatch::stopped  )  const
 

long stopwatch::useconds  )  const
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  ,
const stopwatch
[friend]
 


Member Data Documentation

long stopwatch::diffsec [mutable, private]
 

long stopwatch::diffusec [mutable, private]
 

bool stopwatch::stopped_ [private]
 

struct timeval tv1 stopwatch::tv2 [mutable, private]
 

struct timezone stopwatch::tz [mutable, private]
 


The documentation for this class was generated from the following files:
Generated on Sat Jul 18 23:03:18 2009 for cadabra by  doxygen 1.4.6